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 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1935 SINGLE_VALUE_TYPE(switches::kEnableTabAudioMuting) | 1935 SINGLE_VALUE_TYPE(switches::kEnableTabAudioMuting) |
| 1936 }, | 1936 }, |
| 1937 #endif // defined(USE_AURA) | 1937 #endif // defined(USE_AURA) |
| 1938 { | 1938 { |
| 1939 "enable-credential-manager-api", | 1939 "enable-credential-manager-api", |
| 1940 IDS_FLAGS_CREDENTIAL_MANAGER_API_NAME, | 1940 IDS_FLAGS_CREDENTIAL_MANAGER_API_NAME, |
| 1941 IDS_FLAGS_CREDENTIAL_MANAGER_API_DESCRIPTION, | 1941 IDS_FLAGS_CREDENTIAL_MANAGER_API_DESCRIPTION, |
| 1942 kOsAll, | 1942 kOsAll, |
| 1943 SINGLE_VALUE_TYPE(switches::kEnableCredentialManagerAPI) | 1943 SINGLE_VALUE_TYPE(switches::kEnableCredentialManagerAPI) |
| 1944 }, | 1944 }, |
| 1945 #if defined(ENABLE_PLUGINS) | |
|
groby-ooo-7-16
2014/10/06 17:24:42
Question: Do we want to have this in about:flags?
| |
| 1946 { | |
| 1947 "enable-plugin-power-saver", | |
| 1948 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_NAME, | |
| 1949 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_DESCRIPTION, | |
| 1950 kOsDesktop, | |
| 1951 SINGLE_VALUE_TYPE(switches::kEnablePluginPowerSaver) | |
| 1952 }, | |
| 1953 #endif | |
| 1945 | 1954 |
| 1946 // NOTE: Adding new command-line switches requires adding corresponding | 1955 // NOTE: Adding new command-line switches requires adding corresponding |
| 1947 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1956 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 1948 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1957 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 1949 }; | 1958 }; |
| 1950 | 1959 |
| 1951 const Experiment* experiments = kExperiments; | 1960 const Experiment* experiments = kExperiments; |
| 1952 size_t num_experiments = arraysize(kExperiments); | 1961 size_t num_experiments = arraysize(kExperiments); |
| 1953 | 1962 |
| 1954 // Stores and encapsulates the little state that about:flags has. | 1963 // Stores and encapsulates the little state that about:flags has. |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2532 } | 2541 } |
| 2533 | 2542 |
| 2534 const Experiment* GetExperiments(size_t* count) { | 2543 const Experiment* GetExperiments(size_t* count) { |
| 2535 *count = num_experiments; | 2544 *count = num_experiments; |
| 2536 return experiments; | 2545 return experiments; |
| 2537 } | 2546 } |
| 2538 | 2547 |
| 2539 } // namespace testing | 2548 } // namespace testing |
| 2540 | 2549 |
| 2541 } // namespace about_flags | 2550 } // namespace about_flags |
| OLD | NEW |