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(); |