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

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

Issue 2666833003: Revert of Removing "All Bookmarks" (Closed)
Patch Set: 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 ca7030b6d711b17a06e9d5420d108d867e44daa0..42b945f1260bb30e98c79fc2031ce7583094cca7 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -122,6 +122,15 @@
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 flags from PasswordGenerationEnabled.
NSString* enablePasswordGenerationValue =
[defaults stringForKey:@"PasswordGenerationEnabled"];
« 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