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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 #endif | 85 #endif |
86 | 86 |
87 #if defined(ENABLE_PRINT_PREVIEW) | 87 #if defined(ENABLE_PRINT_PREVIEW) |
88 #include "chrome/browser/ui/webui/print_preview/print_preview_distiller.h" | 88 #include "chrome/browser/ui/webui/print_preview/print_preview_distiller.h" |
89 #endif | 89 #endif |
90 | 90 |
91 #if defined(USE_OZONE) | 91 #if defined(USE_OZONE) |
92 #include "ui/ozone/public/ozone_switches.h" | 92 #include "ui/ozone/public/ozone_switches.h" |
93 #endif | 93 #endif |
94 | 94 |
95 #if defined(OS_WIN) | |
96 #include "components/search_engines/desktop_search_win.h" | |
97 #endif // defined(OS_WIN) | |
Peter Kasting
2015/12/03 05:41:39
Nit: I suggest grouping together OS_, USE_, and EN
fdoray
2015/12/03 17:16:17
Done.
| |
98 | |
95 using flags_ui::FeatureEntry; | 99 using flags_ui::FeatureEntry; |
96 using flags_ui::kOsMac; | 100 using flags_ui::kOsMac; |
97 using flags_ui::kOsWin; | 101 using flags_ui::kOsWin; |
98 using flags_ui::kOsLinux; | 102 using flags_ui::kOsLinux; |
99 using flags_ui::kOsCrOS; | 103 using flags_ui::kOsCrOS; |
100 using flags_ui::kOsAndroid; | 104 using flags_ui::kOsAndroid; |
101 using flags_ui::kOsCrOSOwnerOnly; | 105 using flags_ui::kOsCrOSOwnerOnly; |
102 | 106 |
103 namespace about_flags { | 107 namespace about_flags { |
104 | 108 |
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2060 #endif | 2064 #endif |
2061 #if defined(TOOLKIT_VIEWS) | 2065 #if defined(TOOLKIT_VIEWS) |
2062 {"enable-autofill-credit-card-upload", | 2066 {"enable-autofill-credit-card-upload", |
2063 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_NAME, | 2067 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_NAME, |
2064 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_DESCRIPTION, | 2068 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_DESCRIPTION, |
2065 kOsCrOS | kOsWin | kOsLinux, | 2069 kOsCrOS | kOsWin | kOsLinux, |
2066 ENABLE_DISABLE_VALUE_TYPE( | 2070 ENABLE_DISABLE_VALUE_TYPE( |
2067 autofill::switches::kEnableOfferUploadCreditCards, | 2071 autofill::switches::kEnableOfferUploadCreditCards, |
2068 autofill::switches::kDisableOfferUploadCreditCards)}, | 2072 autofill::switches::kDisableOfferUploadCreditCards)}, |
2069 #endif // defined(TOOLKIT_VIEWS) | 2073 #endif // defined(TOOLKIT_VIEWS) |
2074 #if defined(OS_WIN) | |
2075 {"enable-windows-desktop-search-redirection", | |
2076 IDS_FLAGS_WINDOWS_DESKTOP_SEARCH_REDIRECTION_NAME, | |
2077 IDS_FLAGS_WINDOWS_DESKTOP_SEARCH_REDIRECTION_DESCRIPTION, | |
2078 kOsWin, | |
2079 FEATURE_VALUE_TYPE(kWindowsDesktopSearchRedirectionFeature)}, | |
2080 #endif // defined(OS_WIN) | |
2070 // NOTE: Adding new command-line switches requires adding corresponding | 2081 // NOTE: Adding new command-line switches requires adding corresponding |
2071 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2082 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2072 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2083 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2073 }; | 2084 }; |
2074 | 2085 |
2075 class FlagsStateSingleton { | 2086 class FlagsStateSingleton { |
2076 public: | 2087 public: |
2077 FlagsStateSingleton() | 2088 FlagsStateSingleton() |
2078 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2089 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2079 ~FlagsStateSingleton() {} | 2090 ~FlagsStateSingleton() {} |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2265 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2276 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2266 | 2277 |
2267 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2278 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2268 *count = arraysize(kFeatureEntries); | 2279 *count = arraysize(kFeatureEntries); |
2269 return kFeatureEntries; | 2280 return kFeatureEntries; |
2270 } | 2281 } |
2271 | 2282 |
2272 } // namespace testing | 2283 } // namespace testing |
2273 | 2284 |
2274 } // namespace about_flags | 2285 } // namespace about_flags |
OLD | NEW |