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 <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1959 kOsCrOS | kOsMac | kOsWin, | 1959 kOsCrOS | kOsMac | kOsWin, |
1960 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) | 1960 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) |
1961 }, | 1961 }, |
1962 { | 1962 { |
1963 "enable-ignore-autocomplete-off", | 1963 "enable-ignore-autocomplete-off", |
1964 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, | 1964 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, |
1965 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, | 1965 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, |
1966 kOsAll, | 1966 kOsAll, |
1967 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff) | 1967 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff) |
1968 } | 1968 } |
1969 #if defined(USE_AURA) | |
1970 , | |
James Cook
2013/12/19 20:57:55
optional nit: Maybe this could go somewhere above,
Matt Giuca
2013/12/20 03:53:22
Hmm, that sounds good but the order here actually
| |
1971 { | |
1972 "use-system-title-bar", | |
1973 IDS_FLAGS_USE_SYSTEM_TITLE_BAR, | |
1974 IDS_FLAGS_USE_SYSTEM_TITLE_BAR_DESCRIPTION, | |
1975 kOsLinux, | |
1976 SINGLE_VALUE_TYPE(switches::kUseSystemTitleBar) | |
1977 } | |
1978 #endif | |
1969 }; | 1979 }; |
1970 | 1980 |
1971 const Experiment* experiments = kExperiments; | 1981 const Experiment* experiments = kExperiments; |
1972 size_t num_experiments = arraysize(kExperiments); | 1982 size_t num_experiments = arraysize(kExperiments); |
1973 | 1983 |
1974 // Stores and encapsulates the little state that about:flags has. | 1984 // Stores and encapsulates the little state that about:flags has. |
1975 class FlagsState { | 1985 class FlagsState { |
1976 public: | 1986 public: |
1977 FlagsState() : needs_restart_(false) {} | 1987 FlagsState() : needs_restart_(false) {} |
1978 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1988 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2469 } | 2479 } |
2470 | 2480 |
2471 const Experiment* GetExperiments(size_t* count) { | 2481 const Experiment* GetExperiments(size_t* count) { |
2472 *count = num_experiments; | 2482 *count = num_experiments; |
2473 return experiments; | 2483 return experiments; |
2474 } | 2484 } |
2475 | 2485 |
2476 } // namespace testing | 2486 } // namespace testing |
2477 | 2487 |
2478 } // namespace about_flags | 2488 } // namespace about_flags |
OLD | NEW |