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

Side by Side Diff: ios/chrome/browser/experimental_flags.mm

Issue 2611003002: Autoscroll new background tabs on iPad (Closed)
Patch Set: Updated comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file can be empty. Its purpose is to contain the relatively short lived 5 // This file can be empty. Its purpose is to contain the relatively short lived
6 // definitions required for experimental flags. 6 // definitions required for experimental flags.
7 7
8 #include "ios/chrome/browser/experimental_flags.h" 8 #include "ios/chrome/browser/experimental_flags.h"
9 9
10 #include <dispatch/dispatch.h> 10 #include <dispatch/dispatch.h>
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 bool IsSpotlightActionsEnabled() { 267 bool IsSpotlightActionsEnabled() {
268 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 268 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
269 return !command_line->HasSwitch(switches::kDisableSpotlightActions); 269 return !command_line->HasSwitch(switches::kDisableSpotlightActions);
270 } 270 }
271 271
272 bool IsStartupCrashEnabled() { 272 bool IsStartupCrashEnabled() {
273 return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash]; 273 return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash];
274 } 274 }
275 275
276 bool IsTabStripAutoScrollNewTabsEnabled() {
277 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
278 return !command_line->HasSwitch(switches::kDisableTabStripAutoScrollNewTabs);
279 }
280
276 bool IsTabSwitcherEnabled() { 281 bool IsTabSwitcherEnabled() {
277 // Check if the experimental flag is forced off. 282 // Check if the experimental flag is forced off.
278 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 283 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
279 if (command_line->HasSwitch(switches::kDisableTabSwitcher)) { 284 if (command_line->HasSwitch(switches::kDisableTabSwitcher)) {
280 return false; 285 return false;
281 } 286 }
282 287
283 // Check if the finch experiment is turned off. 288 // Check if the finch experiment is turned off.
284 std::string group_name = base::FieldTrialList::FindFullName("IOSTabSwitcher"); 289 std::string group_name = base::FieldTrialList::FindFullName("IOSTabSwitcher");
285 return !base::StartsWith(group_name, "Disabled", 290 return !base::StartsWith(group_name, "Disabled",
(...skipping 12 matching lines...) Expand all
298 if ([[NSUserDefaults standardUserDefaults] 303 if ([[NSUserDefaults standardUserDefaults]
299 boolForKey:kHeuristicsForPasswordGeneration]) { 304 boolForKey:kHeuristicsForPasswordGeneration]) {
300 return true; 305 return true;
301 } 306 }
302 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 307 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
303 return command_line->HasSwitch( 308 return command_line->HasSwitch(
304 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration); 309 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration);
305 } 310 }
306 311
307 } // namespace experimental_flags 312 } // namespace experimental_flags
OLDNEW
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | ios/chrome/browser/resources/Settings.bundle/Experimental.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698