Chromium Code Reviews| 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 2498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2509 kDelayNavigationFeatureVariations, | 2509 kDelayNavigationFeatureVariations, |
| 2510 "DelayNavigation")}, | 2510 "DelayNavigation")}, |
| 2511 | 2511 |
| 2512 #if defined(OS_ANDROID) | 2512 #if defined(OS_ANDROID) |
| 2513 {"enable-custom-context-menu", | 2513 {"enable-custom-context-menu", |
| 2514 flag_descriptions::kEnableCustomContextMenuName, | 2514 flag_descriptions::kEnableCustomContextMenuName, |
| 2515 flag_descriptions::kEnableCustomContextMenuDescription, kOsAndroid, | 2515 flag_descriptions::kEnableCustomContextMenuDescription, kOsAndroid, |
| 2516 FEATURE_VALUE_TYPE(chrome::android::kCustomContextMenu)}, | 2516 FEATURE_VALUE_TYPE(chrome::android::kCustomContextMenu)}, |
| 2517 #endif // OS_ANDROID | 2517 #endif // OS_ANDROID |
| 2518 | 2518 |
| 2519 {"include-title-to-autocomplete-match-for-current-url", | |
|
Mark P
2017/04/10 22:38:01
Please revise the command line flag in according w
gcomanici
2017/04/11 20:51:41
Done.
| |
| 2520 flag_descriptions::kIncludeTitleToACMatchForCurrentUrlName, | |
| 2521 flag_descriptions::kIncludeTitleToACMatchForCurrentUrlDescription, | |
| 2522 kOsDesktop, | |
| 2523 FEATURE_VALUE_TYPE(omnibox::kIncludeTitleToACMatchForCurrentUrl)}, | |
| 2524 | |
| 2519 // NOTE: Adding new command-line switches requires adding corresponding | 2525 // NOTE: Adding new command-line switches requires adding corresponding |
| 2520 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2526 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2521 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2527 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2522 }; | 2528 }; |
| 2523 | 2529 |
| 2524 class FlagsStateSingleton { | 2530 class FlagsStateSingleton { |
| 2525 public: | 2531 public: |
| 2526 FlagsStateSingleton() | 2532 FlagsStateSingleton() |
| 2527 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2533 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2528 ~FlagsStateSingleton() {} | 2534 ~FlagsStateSingleton() {} |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2717 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2723 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2718 | 2724 |
| 2719 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2725 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2720 *count = arraysize(kFeatureEntries); | 2726 *count = arraysize(kFeatureEntries); |
| 2721 return kFeatureEntries; | 2727 return kFeatureEntries; |
| 2722 } | 2728 } |
| 2723 | 2729 |
| 2724 } // namespace testing | 2730 } // namespace testing |
| 2725 | 2731 |
| 2726 } // namespace about_flags | 2732 } // namespace about_flags |
| OLD | NEW |