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"]) { |