Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: ios/chrome/browser/experimental_flags.mm

Issue 2355743004: Enable Spotlight Actions by default. (Closed)
Patch Set: Fix compilation error. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/about_flags.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index fa9b1f13324d0dc928d529da88f7877577884842..ed01320d51f60773791fbbf036abbd862ec71664 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -187,17 +187,7 @@ bool IsPaymentRequestEnabled() {
bool IsSpotlightActionsEnabled() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kEnableSpotlightActions)) {
- return true;
- } else if (command_line->HasSwitch(switches::kDisableSpotlightActions)) {
- return false;
- }
-
- // Check if the finch experiment is turned on.
- std::string group_name =
- base::FieldTrialList::FindFullName("SpotlightActionsEnabled");
- return base::StartsWith(group_name, "Enabled",
- base::CompareCase::INSENSITIVE_ASCII);
+ return !command_line->HasSwitch(switches::kDisableSpotlightActions);
}
} // namespace experimental_flags
« no previous file with comments | « ios/chrome/browser/about_flags.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698