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

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

Issue 1970163002: Adding flags and finch trial for the removal of All Bookmarks view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | 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 cdf1bf7b312aefffbe2e65823c4a03229820f3c3..96dbc647d1973dfc9435e50ff2e76ca010332edc 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -100,6 +100,15 @@ void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
command_line->AppendSwitch(switches::kDisableLRUSnapshotCache);
}
+ // Populate command line flag for the AllBookmarks from the
+ // configuration plist.
+ NSString* enableAllBookmarks = [defaults stringForKey:@"AllBookmarks"];
+ if ([enableAllBookmarks isEqualToString:@"Enabled"]) {
+ command_line->AppendSwitch(switches::kEnableAllBookmarksView);
+ } else if ([enableAllBookmarks isEqualToString:@"Disabled"]) {
+ command_line->AppendSwitch(switches::kDisableAllBookmarksView);
+ }
+
// Populate command line flag for the NTP favicons experiment from the
// configuration plist.
NSString* enableNTPFavicons = [defaults stringForKey:@"EnableNTPFavicons"];
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698