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

Unified Diff: ios/chrome/browser/about_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
« no previous file with comments | « ios/chrome/app/strings/ios_strings.grd ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/about_flags.mm
diff --git a/ios/chrome/browser/about_flags.mm b/ios/chrome/browser/about_flags.mm
index a681f344ee0adb8c3a9eba782d285989ca2a0cf3..747de62f330103ea9f4296fb79daa70179783b31 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -258,6 +258,14 @@ void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
command_line->AppendSwitch(switches::kDisableDownloadImageRenaming);
}
+ // Populate command line flag for Suggestions UI display.
+ NSString* enableSuggestions = [defaults stringForKey:@"EnableSuggestions"];
+ if ([enableSuggestions isEqualToString:@"Enabled"]) {
+ command_line->AppendSwitch(switches::kEnableSuggestionsUI);
+ } else if ([enableSuggestions isEqualToString:@"Disabled"]) {
+ command_line->AppendSwitch(switches::kDisableSuggestionsUI);
+ }
+
// Freeform commandline flags. These are added last, so that any flags added
// earlier in this function take precedence.
if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
« no previous file with comments | « ios/chrome/app/strings/ios_strings.grd ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698