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

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

Issue 2611003002: Autoscroll new background tabs on iPad (Closed)
Patch Set: fix #3: tap on tab issue 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
Index: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index 470c755ba4497a25128c9cd01d629b203c1c2c70..d4d26e79b45f1c77b767dc37432cee10890fea8a 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -273,6 +273,11 @@ bool IsStartupCrashEnabled() {
return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash];
}
+bool IsTabStripAutoScrollNewTabsEnabled() {
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ return !command_line->HasSwitch(switches::kDisableTabStripAutoScrollNewTabs);
+}
+
bool IsTabSwitcherEnabled() {
// Check if the experimental flag is forced off.
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();

Powered by Google App Engine
This is Rietveld 408576698