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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2345 MULTI_VALUE_TYPE(kDataSaverPromptChoices) | 2345 MULTI_VALUE_TYPE(kDataSaverPromptChoices) |
2346 }, | 2346 }, |
2347 #endif // defined(OS_CHROMEOS) | 2347 #endif // defined(OS_CHROMEOS) |
2348 { | 2348 { |
2349 "supervised-user-safesites", | 2349 "supervised-user-safesites", |
2350 IDS_FLAGS_SUPERVISED_USER_SAFESITES_NAME, | 2350 IDS_FLAGS_SUPERVISED_USER_SAFESITES_NAME, |
2351 IDS_FLAGS_SUPERVISED_USER_SAFESITES_DESCRIPTION, | 2351 IDS_FLAGS_SUPERVISED_USER_SAFESITES_DESCRIPTION, |
2352 kOsAndroid | kOsMac | kOsWin | kOsLinux | kOsCrOS, | 2352 kOsAndroid | kOsMac | kOsWin | kOsLinux | kOsCrOS, |
2353 MULTI_VALUE_TYPE(kSupervisedUserSafeSitesChoices) | 2353 MULTI_VALUE_TYPE(kSupervisedUserSafeSitesChoices) |
2354 }, | 2354 }, |
| 2355 #if defined(OS_ANDROID) |
| 2356 { |
| 2357 "enable-autofill-keyboard-accessory-view", |
| 2358 IDS_FLAGS_AUTOFILL_ACCESSORY_VIEW_NAME, |
| 2359 IDS_FLAGS_AUTOFILL_ACCESSORY_VIEW_DESCRIPTION, |
| 2360 kOsAndroid, |
| 2361 SINGLE_VALUE_TYPE(autofill::switches::kEnableAccessorySuggestionView) |
| 2362 }, |
| 2363 #endif // defined(OS_ANDROID) |
2355 // NOTE: Adding new command-line switches requires adding corresponding | 2364 // NOTE: Adding new command-line switches requires adding corresponding |
2356 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2365 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2357 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2366 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2358 }; | 2367 }; |
2359 | 2368 |
2360 const Experiment* experiments = kExperiments; | 2369 const Experiment* experiments = kExperiments; |
2361 size_t num_experiments = arraysize(kExperiments); | 2370 size_t num_experiments = arraysize(kExperiments); |
2362 | 2371 |
2363 // Stores and encapsulates the little state that about:flags has. | 2372 // Stores and encapsulates the little state that about:flags has. |
2364 class FlagsState { | 2373 class FlagsState { |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2933 } | 2942 } |
2934 | 2943 |
2935 const Experiment* GetExperiments(size_t* count) { | 2944 const Experiment* GetExperiments(size_t* count) { |
2936 *count = num_experiments; | 2945 *count = num_experiments; |
2937 return experiments; | 2946 return experiments; |
2938 } | 2947 } |
2939 | 2948 |
2940 } // namespace testing | 2949 } // namespace testing |
2941 | 2950 |
2942 } // namespace about_flags | 2951 } // namespace about_flags |
OLD | NEW |