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

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

Issue 2566993002: [ObjC ARC] Converts ios/chrome/browser:browser to ARC. (Closed)
Patch Set: comments Created 4 years 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>
11 #import <Foundation/Foundation.h> 11 #import <Foundation/Foundation.h>
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/metrics/field_trial.h" 16 #include "base/metrics/field_trial.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/sys_string_conversions.h" 18 #include "base/strings/sys_string_conversions.h"
19 #include "components/autofill/core/common/autofill_switches.h" 19 #include "components/autofill/core/common/autofill_switches.h"
20 #include "components/reading_list/core/reading_list_switches.h" 20 #include "components/reading_list/core/reading_list_switches.h"
21 #include "components/variations/variations_associated_data.h" 21 #include "components/variations/variations_associated_data.h"
22 #include "ios/chrome/browser/chrome_switches.h" 22 #include "ios/chrome/browser/chrome_switches.h"
23 #include "ios/web/public/web_view_creation_util.h" 23 #include "ios/web/public/web_view_creation_util.h"
24 24
25 #if !defined(__has_feature) || !__has_feature(objc_arc)
26 #error "This file requires ARC support."
27 #endif
28
25 namespace { 29 namespace {
26 30
27 NSString* const kEnableAlertOnBackgroundUpload = 31 NSString* const kEnableAlertOnBackgroundUpload =
28 @"EnableAlertsOnBackgroundUpload"; 32 @"EnableAlertsOnBackgroundUpload";
29 NSString* const kEnableNewClearBrowsingDataUI = @"EnableNewClearBrowsingDataUI"; 33 NSString* const kEnableNewClearBrowsingDataUI = @"EnableNewClearBrowsingDataUI";
30 NSString* const kEnableStartupCrash = @"EnableStartupCrash"; 34 NSString* const kEnableStartupCrash = @"EnableStartupCrash";
31 NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords"; 35 NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords";
32 NSString* const kExternalAppPromptDisabled = @"ExternalAppPromptDisabled"; 36 NSString* const kExternalAppPromptDisabled = @"ExternalAppPromptDisabled";
33 NSString* const kFirstRunForceEnabled = @"FirstRunForceEnabled"; 37 NSString* const kFirstRunForceEnabled = @"FirstRunForceEnabled";
34 NSString* const kForceResetContextualSearch = @"ForceResetContextualSearch"; 38 NSString* const kForceResetContextualSearch = @"ForceResetContextualSearch";
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 if ([[NSUserDefaults standardUserDefaults] 300 if ([[NSUserDefaults standardUserDefaults]
297 boolForKey:kHeuristicsForPasswordGeneration]) { 301 boolForKey:kHeuristicsForPasswordGeneration]) {
298 return true; 302 return true;
299 } 303 }
300 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 304 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
301 return command_line->HasSwitch( 305 return command_line->HasSwitch(
302 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration); 306 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration);
303 } 307 }
304 308
305 } // namespace experimental_flags 309 } // namespace experimental_flags
OLDNEW
« no previous file with comments | « ios/chrome/browser/crash_loop_detection_util.mm ('k') | ios/chrome/browser/file_metadata_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698