| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2318 FEATURE_VALUE_TYPE(omnibox::kOmniboxEntitySuggestions)}, | 2318 FEATURE_VALUE_TYPE(omnibox::kOmniboxEntitySuggestions)}, |
| 2319 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || | 2319 #endif // defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || |
| 2320 // defined(OS_WIN) | 2320 // defined(OS_WIN) |
| 2321 | 2321 |
| 2322 #if defined(OS_ANDROID) | 2322 #if defined(OS_ANDROID) |
| 2323 {"enable-custom-feedback-ui", IDS_FLAGS_ENABLE_CUSTOM_FEEDBACK_UI_NAME, | 2323 {"enable-custom-feedback-ui", IDS_FLAGS_ENABLE_CUSTOM_FEEDBACK_UI_NAME, |
| 2324 IDS_FLAGS_ENABLE_CUSTOM_FEEDBACK_UI_DESCRIPTION, kOsAndroid, | 2324 IDS_FLAGS_ENABLE_CUSTOM_FEEDBACK_UI_DESCRIPTION, kOsAndroid, |
| 2325 FEATURE_VALUE_TYPE(chrome::android::kCustomFeedbackUi)}, | 2325 FEATURE_VALUE_TYPE(chrome::android::kCustomFeedbackUi)}, |
| 2326 #endif // OS_ANDROID | 2326 #endif // OS_ANDROID |
| 2327 | 2327 |
| 2328 #if defined(OS_CHROMEOS) |
| 2329 {"enable-chromevox-arc-support", IDS_FLAGS_SHOW_ARC_FILES_APP_NAME, |
| 2330 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_DESCRIPTION, kOsCrOS, |
| 2331 SINGLE_VALUE_TYPE(chromeos::switches::kEnableChromeVoxArcSupport)}, |
| 2332 #endif // defined(OS_CHROMEOS) |
| 2333 |
| 2328 // NOTE: Adding new command-line switches requires adding corresponding | 2334 // NOTE: Adding new command-line switches requires adding corresponding |
| 2329 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2335 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2330 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2336 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2331 }; | 2337 }; |
| 2332 | 2338 |
| 2333 class FlagsStateSingleton { | 2339 class FlagsStateSingleton { |
| 2334 public: | 2340 public: |
| 2335 FlagsStateSingleton() | 2341 FlagsStateSingleton() |
| 2336 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2342 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2337 ~FlagsStateSingleton() {} | 2343 ~FlagsStateSingleton() {} |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2532 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2527 | 2533 |
| 2528 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2534 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2529 *count = arraysize(kFeatureEntries); | 2535 *count = arraysize(kFeatureEntries); |
| 2530 return kFeatureEntries; | 2536 return kFeatureEntries; |
| 2531 } | 2537 } |
| 2532 | 2538 |
| 2533 } // namespace testing | 2539 } // namespace testing |
| 2534 | 2540 |
| 2535 } // namespace about_flags | 2541 } // namespace about_flags |
| OLD | NEW |