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 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2372 MULTI_VALUE_TYPE(kDataSaverPromptChoices) | 2372 MULTI_VALUE_TYPE(kDataSaverPromptChoices) |
2373 }, | 2373 }, |
2374 #endif // defined(OS_CHROMEOS) | 2374 #endif // defined(OS_CHROMEOS) |
2375 { | 2375 { |
2376 "supervised-user-safesites", | 2376 "supervised-user-safesites", |
2377 IDS_FLAGS_SUPERVISED_USER_SAFESITES_NAME, | 2377 IDS_FLAGS_SUPERVISED_USER_SAFESITES_NAME, |
2378 IDS_FLAGS_SUPERVISED_USER_SAFESITES_DESCRIPTION, | 2378 IDS_FLAGS_SUPERVISED_USER_SAFESITES_DESCRIPTION, |
2379 kOsAndroid | kOsMac | kOsWin | kOsLinux | kOsCrOS, | 2379 kOsAndroid | kOsMac | kOsWin | kOsLinux | kOsCrOS, |
2380 MULTI_VALUE_TYPE(kSupervisedUserSafeSitesChoices) | 2380 MULTI_VALUE_TYPE(kSupervisedUserSafeSitesChoices) |
2381 }, | 2381 }, |
| 2382 #if defined(OS_ANDROID) |
| 2383 { |
| 2384 "enable-autofill-keyboard-accessory-view", |
| 2385 IDS_FLAGS_AUTOFILL_ACCESSORY_VIEW_NAME, |
| 2386 IDS_FLAGS_AUTOFILL_ACCESSORY_VIEW_DESCRIPTION, |
| 2387 kOsAndroid, |
| 2388 SINGLE_VALUE_TYPE(autofill::switches::kEnableAccessorySuggestionView) |
| 2389 }, |
| 2390 #endif // defined(OS_ANDROID) |
2382 // NOTE: Adding new command-line switches requires adding corresponding | 2391 // NOTE: Adding new command-line switches requires adding corresponding |
2383 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2392 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2384 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2393 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2385 }; | 2394 }; |
2386 | 2395 |
2387 const Experiment* experiments = kExperiments; | 2396 const Experiment* experiments = kExperiments; |
2388 size_t num_experiments = arraysize(kExperiments); | 2397 size_t num_experiments = arraysize(kExperiments); |
2389 | 2398 |
2390 // Stores and encapsulates the little state that about:flags has. | 2399 // Stores and encapsulates the little state that about:flags has. |
2391 class FlagsState { | 2400 class FlagsState { |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2960 } | 2969 } |
2961 | 2970 |
2962 const Experiment* GetExperiments(size_t* count) { | 2971 const Experiment* GetExperiments(size_t* count) { |
2963 *count = num_experiments; | 2972 *count = num_experiments; |
2964 return experiments; | 2973 return experiments; |
2965 } | 2974 } |
2966 | 2975 |
2967 } // namespace testing | 2976 } // namespace testing |
2968 | 2977 |
2969 } // namespace about_flags | 2978 } // namespace about_flags |
OLD | NEW |