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

Side by Side Diff: ios/chrome/browser/about_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
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/app_startup_parameters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 // Implementation of about_flags for iOS that sets flags based on experimental 5 // Implementation of about_flags for iOS that sets flags based on experimental
6 // settings. 6 // settings.
7 7
8 #include "ios/chrome/browser/about_flags.h" 8 #include "ios/chrome/browser/about_flags.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 20 matching lines...) Expand all
31 #include "components/sync/driver/sync_driver_switches.h" 31 #include "components/sync/driver/sync_driver_switches.h"
32 #include "google_apis/gaia/gaia_switches.h" 32 #include "google_apis/gaia/gaia_switches.h"
33 #include "ios/chrome/browser/chrome_switches.h" 33 #include "ios/chrome/browser/chrome_switches.h"
34 #include "ios/chrome/browser/google_api_keys.h" 34 #include "ios/chrome/browser/google_api_keys.h"
35 #include "ios/chrome/grit/ios_strings.h" 35 #include "ios/chrome/grit/ios_strings.h"
36 #include "ios/web/public/user_agent.h" 36 #include "ios/web/public/user_agent.h"
37 #include "ios/web/public/web_view_creation_util.h" 37 #include "ios/web/public/web_view_creation_util.h"
38 38
39 #if !defined(OFFICIAL_BUILD) 39 #if !defined(OFFICIAL_BUILD)
40 #include "components/variations/variations_switches.h" 40 #include "components/variations/variations_switches.h"
41
42 #if !defined(__has_feature) || !__has_feature(objc_arc)
43 #error "This file requires ARC support."
44 #endif
41 #endif 45 #endif
42 46
43 namespace { 47 namespace {
44 // To add a new entry, add to the end of kFeatureEntries. There are two 48 // To add a new entry, add to the end of kFeatureEntries. There are two
45 // distinct types of entries: 49 // distinct types of entries:
46 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE 50 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE
47 // macro for this type supplying the command line to the macro. 51 // macro for this type supplying the command line to the macro.
48 // . MULTI_VALUE: a list of choices, the first of which should correspond to a 52 // . MULTI_VALUE: a list of choices, the first of which should correspond to a
49 // deactivated state for this lab (i.e. no command line option). To specify 53 // deactivated state for this lab (i.e. no command line option). To specify
50 // this type of entry use the macro MULTI_VALUE_TYPE supplying it the 54 // this type of entry use the macro MULTI_VALUE_TYPE supplying it the
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 345 }
342 346
343 namespace testing { 347 namespace testing {
344 348
345 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { 349 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) {
346 *count = arraysize(kFeatureEntries); 350 *count = arraysize(kFeatureEntries);
347 return kFeatureEntries; 351 return kFeatureEntries;
348 } 352 }
349 353
350 } // namespace testing 354 } // namespace testing
OLDNEW
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/app_startup_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698