Introduce a flag to enable bookmarks related changes in iOS.
We are going to allow the reordering of iOS bookmarks.
This CL introduces the flag EnableBookmarkReordering to enable the changes.
The flag could be set in:
iOS's Settings ->Chromium -> Experimental Settings
-> Enabled Bookmark Reordering (under UI settings)

BUG=695749

Review-Url: https://codereview.chromium.org/2937013002
Cr-Commit-Position: refs/heads/master@{#480324}
diff --git a/ios/chrome/browser/about_flags.mm b/ios/chrome/browser/about_flags.mm
index 0c4cad3..5142449 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -262,6 +262,15 @@
     command_line->AppendSwitch(switches::kDisableSigninPromo);
   }
 
+  // Populate command line flag for Bookmark reordering.
+  NSString* enableBookmarkReordering =
+      [defaults stringForKey:@"EnableBookmarkReordering"];
+  if ([enableBookmarkReordering isEqualToString:@"Enabled"]) {
+    command_line->AppendSwitch(switches::kEnableBookmarkReordering);
+  } else if ([enableBookmarkReordering isEqualToString:@"Disabled"]) {
+    command_line->AppendSwitch(switches::kDisableBookmarkReordering);
+  }
+
   // Populate command line flag for the request mobile site experiment from the
   // configuration plist.
   if ([defaults boolForKey:@"RequestMobileSiteDisabled"])