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

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

Issue 2355743004: Enable Spotlight Actions by default. (Closed)
Patch Set: 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
« ios/chrome/browser/about_flags.mm ('K') | « 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..cdbc2f6155c2839b2d240edd2c25931e57d2504e 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -187,17 +187,10 @@ 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)) {
+ if (command_line->HasSwitch(switches::kDisableSpotlightActions)) {
sdefresne 2016/09/20 16:56:22 return !command_line->HasSwitch(switches::kDisable
jif 2016/09/20 18:34:57 Done.
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 true;
}
} // namespace experimental_flags
« ios/chrome/browser/about_flags.mm ('K') | « ios/chrome/browser/about_flags.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698