OLD | NEW |
---|---|
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 18 matching lines...) Expand all Loading... | |
29 #include "components/strings/grit/components_strings.h" | 29 #include "components/strings/grit/components_strings.h" |
30 #include "components/sync/driver/sync_driver_switches.h" | 30 #include "components/sync/driver/sync_driver_switches.h" |
31 #include "google_apis/gaia/gaia_switches.h" | 31 #include "google_apis/gaia/gaia_switches.h" |
32 #include "ios/chrome/browser/chrome_switches.h" | 32 #include "ios/chrome/browser/chrome_switches.h" |
33 #include "ios/chrome/grit/ios_strings.h" | 33 #include "ios/chrome/grit/ios_strings.h" |
34 #include "ios/web/public/user_agent.h" | 34 #include "ios/web/public/user_agent.h" |
35 #include "ios/web/public/web_view_creation_util.h" | 35 #include "ios/web/public/web_view_creation_util.h" |
36 | 36 |
37 #if !defined(OFFICIAL_BUILD) | 37 #if !defined(OFFICIAL_BUILD) |
38 #include "components/variations/variations_switches.h" | 38 #include "components/variations/variations_switches.h" |
39 | |
40 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
sdefresne
2016/11/21 12:04:18
This is incorrect, this must be after the #endif c
stkhapugin
2016/11/21 15:34:55
Done.
| |
41 #error "This file requires ARC support." | |
42 #endif | |
39 #endif | 43 #endif |
40 | 44 |
41 namespace { | 45 namespace { |
42 // To add a new entry, add to the end of kFeatureEntries. There are two | 46 // To add a new entry, add to the end of kFeatureEntries. There are two |
43 // distinct types of entries: | 47 // distinct types of entries: |
44 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE | 48 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE |
45 // macro for this type supplying the command line to the macro. | 49 // macro for this type supplying the command line to the macro. |
46 // . MULTI_VALUE: a list of choices, the first of which should correspond to a | 50 // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
47 // deactivated state for this lab (i.e. no command line option). To specify | 51 // deactivated state for this lab (i.e. no command line option). To specify |
48 // this type of entry use the macro MULTI_VALUE_TYPE supplying it the | 52 // this type of entry use the macro MULTI_VALUE_TYPE supplying it the |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
326 } | 330 } |
327 | 331 |
328 namespace testing { | 332 namespace testing { |
329 | 333 |
330 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { | 334 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { |
331 *count = arraysize(kFeatureEntries); | 335 *count = arraysize(kFeatureEntries); |
332 return kFeatureEntries; | 336 return kFeatureEntries; |
333 } | 337 } |
334 | 338 |
335 } // namespace testing | 339 } // namespace testing |
OLD | NEW |