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

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

Issue 2611003002: Autoscroll new background tabs on iPad (Closed)
Patch Set: Addressed Jason's comments to turn on the feature by default 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 | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | ios/chrome/browser/chrome_switches.h » ('J')
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 bba53c6b5a3d562ebdfbb7f4c3116d13ed08b281..35de365386ea966ffa7dbcd783a935f06f439577 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -98,6 +98,13 @@ void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
BUILDFLAG(GOOGLE_TEST_OAUTH_CLIENT_SECRET));
}
+ // Populate command line flag for the tab strip auto scroll new tabs
+ // experiment from the configuration plist.
+ if ([defaults boolForKey:@"TabStripAutoScrollNewTabsDisabled"])
+ command_line->AppendSwitch(switches::kDisableTabStripAutoScrollNewTabs);
+ else
+ command_line->AppendSwitch(switches::kEnableTabStripAutoScrollNewTabs);
+
// Populate command line flag for the Tab Switcher experiment from the
// configuration plist.
NSString* enableTabSwitcher = [defaults stringForKey:@"EnableTabSwitcher"];
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | ios/chrome/browser/chrome_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698