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

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

Issue 2184823005: Add flag for the counters and time selection UI in CBD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | 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 11 matching lines...) Expand all
22 22
23 namespace { 23 namespace {
24 NSString* const kEnableAlertOnBackgroundUpload = 24 NSString* const kEnableAlertOnBackgroundUpload =
25 @"EnableAlertsOnBackgroundUpload"; 25 @"EnableAlertsOnBackgroundUpload";
26 NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords"; 26 NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords";
27 NSString* const kHeuristicsForPasswordGeneration = 27 NSString* const kHeuristicsForPasswordGeneration =
28 @"HeuristicsForPasswordGeneration"; 28 @"HeuristicsForPasswordGeneration";
29 NSString* const kEnableReadingList = @"EnableReadingList"; 29 NSString* const kEnableReadingList = @"EnableReadingList";
30 NSString* const kUpdatePasswordUIEnabled = @"UpdatePasswordUIEnabled"; 30 NSString* const kUpdatePasswordUIEnabled = @"UpdatePasswordUIEnabled";
31 NSString* const kEnableQRCodeReader = @"EnableQRCodeReader"; 31 NSString* const kEnableQRCodeReader = @"EnableQRCodeReader";
32 NSString* const kEnableNewClearBrowsingDataUI = @"EnableNewClearBrowsingDataUI";
32 } // namespace 33 } // namespace
33 34
34 namespace experimental_flags { 35 namespace experimental_flags {
35 36
36 bool IsAlertOnBackgroundUploadEnabled() { 37 bool IsAlertOnBackgroundUploadEnabled() {
37 return [[NSUserDefaults standardUserDefaults] 38 return [[NSUserDefaults standardUserDefaults]
38 boolForKey:kEnableAlertOnBackgroundUpload]; 39 boolForKey:kEnableAlertOnBackgroundUpload];
39 } 40 }
40 41
41 bool IsLRUSnapshotCacheEnabled() { 42 bool IsLRUSnapshotCacheEnabled() {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool IsQRCodeReaderEnabled() { 147 bool IsQRCodeReaderEnabled() {
147 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 148 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
148 if (command_line->HasSwitch(switches::kEnableQRScanner)) 149 if (command_line->HasSwitch(switches::kEnableQRScanner))
149 return true; 150 return true;
150 151
151 // Check if the finch experiment is turned on. 152 // Check if the finch experiment is turned on.
152 return [[NSUserDefaults standardUserDefaults] 153 return [[NSUserDefaults standardUserDefaults]
153 boolForKey:kEnableQRCodeReader]; 154 boolForKey:kEnableQRCodeReader];
154 } 155 }
155 156
157 bool IsNewClearBrowsingDataUIEnabled() {
158 NSString* countersFlag = [[NSUserDefaults standardUserDefaults]
159 objectForKey:kEnableNewClearBrowsingDataUI];
160 if ([countersFlag isEqualToString:@"Enabled"])
161 return true;
162 return false;
163 }
164
156 } // namespace experimental_flags 165 } // namespace experimental_flags
OLDNEW
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698