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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 }, | 1912 }, |
1913 #endif // OS_CHROMEOS | 1913 #endif // OS_CHROMEOS |
1914 { | 1914 { |
1915 "enable-data-reduction-proxy-alt", | 1915 "enable-data-reduction-proxy-alt", |
1916 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_ALTERNATIVE_NAME, | 1916 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_ALTERNATIVE_NAME, |
1917 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_ALTERNATIVE_DESCRIPTION, | 1917 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_ALTERNATIVE_DESCRIPTION, |
1918 kOsAndroid, | 1918 kOsAndroid, |
1919 SINGLE_VALUE_TYPE(data_reduction_proxy::switches:: | 1919 SINGLE_VALUE_TYPE(data_reduction_proxy::switches:: |
1920 kEnableDataReductionProxyAlt) | 1920 kEnableDataReductionProxyAlt) |
1921 }, | 1921 }, |
1922 | 1922 #if defined(OS_CHROMEOS) |
| 1923 { |
| 1924 "enable-remote-assistance", |
| 1925 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_NAME, |
| 1926 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_DESCRIPTION, |
| 1927 kOsCrOS, |
| 1928 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) |
| 1929 }, |
| 1930 #endif |
1923 // NOTE: Adding new command-line switches requires adding corresponding | 1931 // NOTE: Adding new command-line switches requires adding corresponding |
1924 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1932 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1925 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1933 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1926 }; | 1934 }; |
1927 | 1935 |
1928 const Experiment* experiments = kExperiments; | 1936 const Experiment* experiments = kExperiments; |
1929 size_t num_experiments = arraysize(kExperiments); | 1937 size_t num_experiments = arraysize(kExperiments); |
1930 | 1938 |
1931 // Stores and encapsulates the little state that about:flags has. | 1939 // Stores and encapsulates the little state that about:flags has. |
1932 class FlagsState { | 1940 class FlagsState { |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 } | 2507 } |
2500 | 2508 |
2501 const Experiment* GetExperiments(size_t* count) { | 2509 const Experiment* GetExperiments(size_t* count) { |
2502 *count = num_experiments; | 2510 *count = num_experiments; |
2503 return experiments; | 2511 return experiments; |
2504 } | 2512 } |
2505 | 2513 |
2506 } // namespace testing | 2514 } // namespace testing |
2507 | 2515 |
2508 } // namespace about_flags | 2516 } // namespace about_flags |
OLD | NEW |