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

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

Issue 2480013003: Revert of Enable the iPad Tab Switcher by default. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if ([[NSUserDefaults standardUserDefaults] 80 if ([[NSUserDefaults standardUserDefaults]
81 boolForKey:kHeuristicsForPasswordGeneration]) { 81 boolForKey:kHeuristicsForPasswordGeneration]) {
82 return true; 82 return true;
83 } 83 }
84 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 84 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
85 return command_line->HasSwitch( 85 return command_line->HasSwitch(
86 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration); 86 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration);
87 } 87 }
88 88
89 bool IsTabSwitcherEnabled() { 89 bool IsTabSwitcherEnabled() {
90 // Check if the experimental flag is forced off. 90 // Check if the experimental flag is forced on or off.
91 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 91 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
92 if (command_line->HasSwitch(switches::kDisableTabSwitcher)) { 92 if (command_line->HasSwitch(switches::kEnableTabSwitcher)) {
93 return true;
94 } else if (command_line->HasSwitch(switches::kDisableTabSwitcher)) {
93 return false; 95 return false;
94 } 96 }
95 97
96 // Check if the finch experiment is turned off. 98 // Check if the finch experiment is turned on.
97 std::string group_name = base::FieldTrialList::FindFullName("IOSTabSwitcher"); 99 std::string group_name = base::FieldTrialList::FindFullName("IOSTabSwitcher");
98 return !base::StartsWith(group_name, "Disabled", 100 return base::StartsWith(group_name, "Enabled",
99 base::CompareCase::INSENSITIVE_ASCII); 101 base::CompareCase::INSENSITIVE_ASCII);
100 } 102 }
101 103
102 bool IsReadingListEnabled() { 104 bool IsReadingListEnabled() {
103 return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableReadingList]; 105 return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableReadingList];
104 } 106 }
105 107
106 bool IsAllBookmarksEnabled() { 108 bool IsAllBookmarksEnabled() {
107 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 109 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
108 if (command_line->HasSwitch(switches::kEnableAllBookmarksView)) { 110 if (command_line->HasSwitch(switches::kEnableAllBookmarksView)) {
109 return true; 111 return true;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 180 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
179 return !command_line->HasSwitch(switches::kDisableSpotlightActions); 181 return !command_line->HasSwitch(switches::kDisableSpotlightActions);
180 } 182 }
181 183
182 bool IsMDMIntegrationEnabled() { 184 bool IsMDMIntegrationEnabled() {
183 return ![[NSUserDefaults standardUserDefaults] 185 return ![[NSUserDefaults standardUserDefaults]
184 boolForKey:kMDMIntegrationDisabled]; 186 boolForKey:kMDMIntegrationDisabled];
185 } 187 }
186 188
187 } // namespace experimental_flags 189 } // namespace experimental_flags
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698