Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 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 #endif | |
|
mthiesse
2017/01/31 20:54:54
was this intentional?
tiborg1
2017/02/01 00:22:18
Oops, no this was not intentional. I don't know ho
| |
| 42 | 41 |
| 43 #if !defined(__has_feature) || !__has_feature(objc_arc) | 42 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 44 #error "This file requires ARC support." | 43 #error "This file requires ARC support." |
| 45 #endif | 44 #endif |
| 45 #endif | |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 // 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 |
| 49 // distinct types of entries: | 49 // distinct types of entries: |
| 50 // . 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 |
| 51 // macro for this type supplying the command line to the macro. | 51 // macro for this type supplying the command line to the macro. |
| 52 // . 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 |
| 53 // 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 |
| 54 // 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 |
| 55 // array of choices. | 55 // array of choices. |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 348 } | 348 } |
| 349 | 349 |
| 350 namespace testing { | 350 namespace testing { |
| 351 | 351 |
| 352 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { | 352 const flags_ui::FeatureEntry* GetFeatureEntries(size_t* count) { |
| 353 *count = arraysize(kFeatureEntries); | 353 *count = arraysize(kFeatureEntries); |
| 354 return kFeatureEntries; | 354 return kFeatureEntries; |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace testing | 357 } // namespace testing |
| OLD | NEW |