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

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

Issue 2643753002: Add the suggestions UI in chrome (Closed)
Patch Set: Update comments Created 3 years, 11 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
Index: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index d4d26e79b45f1c77b767dc37432cee10890fea8a..31fc04302205270e70bf99fe7d59df46e94ceef2 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -309,4 +309,17 @@ bool UseOnlyLocalHeuristicsForPasswordGeneration() {
autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration);
}
+bool IsSuggestionsUIEnabled() {
+ // Check if the experimental flag is forced on or off.
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kEnableSuggestionsUI))
+ return true;
+
+ if (command_line->HasSwitch(switches::kDisableSuggestionsUI))
+ return false;
+
+ // By default, disable it.
+ return false;
+}
+
} // namespace experimental_flags
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | ios/chrome/browser/resources/Settings.bundle/Experimental.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698