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 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1943 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION, | 1943 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION, |
1944 kOsCrOS | kOsMac | kOsWin, | 1944 kOsCrOS | kOsMac | kOsWin, |
1945 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) | 1945 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) |
1946 }, | 1946 }, |
1947 { | 1947 { |
1948 "enable-ignore-autocomplete-off", | 1948 "enable-ignore-autocomplete-off", |
1949 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, | 1949 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_NAME, |
1950 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, | 1950 IDS_FLAGS_ENABLE_IGNORE_AUTOCOMPLETE_OFF_DESCRIPTION, |
1951 kOsAll, | 1951 kOsAll, |
1952 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff) | 1952 SINGLE_VALUE_TYPE(autofill::switches::kEnableIgnoreAutocompleteOff) |
1953 }, | |
1954 #if defined(USE_AURA) || defined(OS_WIN) | |
markusheintz_
2013/12/20 15:35:19
don't indent preprocessor directives.
npentrel
2013/12/20 16:03:13
Done.
| |
1955 { | |
1956 "enable-save-password-bubble", | |
1957 IDS_FLAGS_ENABLE_SAVE_PASSWORD_BUBBLE_NAME, | |
1958 IDS_FLAGS_ENABLE_SAVE_PASSWORD_BUBBLE_DESCRIPTION, | |
1959 kOsWin | kOsCrOS, | |
1960 SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble) | |
1953 } | 1961 } |
1962 #endif | |
markusheintz_
2013/12/20 15:35:19
Same as above
npentrel
2013/12/20 16:03:13
Done.
| |
1954 }; | 1963 }; |
1955 | 1964 |
1956 const Experiment* experiments = kExperiments; | 1965 const Experiment* experiments = kExperiments; |
1957 size_t num_experiments = arraysize(kExperiments); | 1966 size_t num_experiments = arraysize(kExperiments); |
1958 | 1967 |
1959 // Stores and encapsulates the little state that about:flags has. | 1968 // Stores and encapsulates the little state that about:flags has. |
1960 class FlagsState { | 1969 class FlagsState { |
1961 public: | 1970 public: |
1962 FlagsState() : needs_restart_(false) {} | 1971 FlagsState() : needs_restart_(false) {} |
1963 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1972 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2454 } | 2463 } |
2455 | 2464 |
2456 const Experiment* GetExperiments(size_t* count) { | 2465 const Experiment* GetExperiments(size_t* count) { |
2457 *count = num_experiments; | 2466 *count = num_experiments; |
2458 return experiments; | 2467 return experiments; |
2459 } | 2468 } |
2460 | 2469 |
2461 } // namespace testing | 2470 } // namespace testing |
2462 | 2471 |
2463 } // namespace about_flags | 2472 } // namespace about_flags |
OLD | NEW |