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 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1954 }, | 1954 }, |
1955 #if defined(ENABLE_PLUGINS) | 1955 #if defined(ENABLE_PLUGINS) |
1956 { | 1956 { |
1957 "enable-plugin-power-saver", | 1957 "enable-plugin-power-saver", |
1958 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_NAME, | 1958 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_NAME, |
1959 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_DESCRIPTION, | 1959 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_DESCRIPTION, |
1960 kOsDesktop, | 1960 kOsDesktop, |
1961 SINGLE_VALUE_TYPE(switches::kEnablePluginPowerSaver) | 1961 SINGLE_VALUE_TYPE(switches::kEnablePluginPowerSaver) |
1962 }, | 1962 }, |
1963 #endif | 1963 #endif |
1964 | 1964 #if defined(OS_CHROMEOS) |
| 1965 { |
| 1966 "enable-remote-assistance", |
| 1967 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_NAME, |
| 1968 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_DESCRIPTION, |
| 1969 kOsCrOS, |
| 1970 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) |
| 1971 }, |
| 1972 #endif // defined(OS_CHROMEOS) |
1965 // NOTE: Adding new command-line switches requires adding corresponding | 1973 // NOTE: Adding new command-line switches requires adding corresponding |
1966 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1974 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1967 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1975 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1968 }; | 1976 }; |
1969 | 1977 |
1970 const Experiment* experiments = kExperiments; | 1978 const Experiment* experiments = kExperiments; |
1971 size_t num_experiments = arraysize(kExperiments); | 1979 size_t num_experiments = arraysize(kExperiments); |
1972 | 1980 |
1973 // Stores and encapsulates the little state that about:flags has. | 1981 // Stores and encapsulates the little state that about:flags has. |
1974 class FlagsState { | 1982 class FlagsState { |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2551 } | 2559 } |
2552 | 2560 |
2553 const Experiment* GetExperiments(size_t* count) { | 2561 const Experiment* GetExperiments(size_t* count) { |
2554 *count = num_experiments; | 2562 *count = num_experiments; |
2555 return experiments; | 2563 return experiments; |
2556 } | 2564 } |
2557 | 2565 |
2558 } // namespace testing | 2566 } // namespace testing |
2559 | 2567 |
2560 } // namespace about_flags | 2568 } // namespace about_flags |
OLD | NEW |