46 lines
2.1 KiB
Diff
46 lines
2.1 KiB
Diff
From: uazo <uazo@users.noreply.github.com>
|
|
Date: Mon, 17 Jul 2023 15:24:16 +0000
|
|
Subject: Keep Side Panel Companion disabled
|
|
|
|
---
|
|
chrome/browser/companion/core/features.cc | 13 +++++++------
|
|
1 file changed, 7 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/chrome/browser/companion/core/features.cc b/chrome/browser/companion/core/features.cc
|
|
--- a/chrome/browser/companion/core/features.cc
|
|
+++ b/chrome/browser/companion/core/features.cc
|
|
@@ -23,17 +23,17 @@ namespace internal {
|
|
// `kSidePanelCompanion2`. This makes it possible for Companion to be
|
|
// enabled via multiple field trials (e.g., one that's session consistent, other
|
|
// that's permanent consistent).
|
|
-BASE_FEATURE(kSidePanelCompanion,
|
|
- "SidePanelCompanion",
|
|
- base::FEATURE_DISABLED_BY_DEFAULT);
|
|
+BASE_FEATURE(kSidePanelCompanion, // keep
|
|
+ "SidePanelCompanion", // disabled
|
|
+ base::FEATURE_DISABLED_BY_DEFAULT); // in bromite
|
|
BASE_FEATURE(kSidePanelCompanion2,
|
|
"SidePanelCompanion2",
|
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
|
// Dynamically enables the search companion if the user has experiments
|
|
// enabled.
|
|
-BASE_FEATURE(kCompanionEnabledByObservingExpsNavigations,
|
|
- "CompanionEnabledByObservingExpsNavigations",
|
|
- base::FEATURE_DISABLED_BY_DEFAULT);
|
|
+BASE_FEATURE(kCompanionEnabledByObservingExpsNavigations, // keep
|
|
+ "CompanionEnabledByObservingExpsNavigations", // disabled
|
|
+ base::FEATURE_DISABLED_BY_DEFAULT); // in bromite
|
|
} // namespace internal
|
|
|
|
// When search companion is enabled, show a context menu item that allows the
|
|
@@ -51,6 +51,7 @@ const char kDisableCheckUserPermissionsForCompanion[] =
|
|
const char kForceCompanionPinnedState[] = "force-companion-pinned-state";
|
|
|
|
bool ShouldOverrideCheckingUserPermissionsForCompanion() {
|
|
+ if ((true)) return false;
|
|
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
|
return command_line->HasSwitch(kDisableCheckUserPermissionsForCompanion);
|
|
}
|
|
--
|
|
2.25.1
|