| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 kOsAll, | 1021 kOsAll, |
| 1022 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) | 1022 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) |
| 1023 }, | 1023 }, |
| 1024 { | 1024 { |
| 1025 "enable-web-intents-invocation", | 1025 "enable-web-intents-invocation", |
| 1026 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME, | 1026 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME, |
| 1027 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION, | 1027 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION, |
| 1028 kOsAll, | 1028 kOsAll, |
| 1029 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) | 1029 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) |
| 1030 }, | 1030 }, |
| 1031 { |
| 1032 "enable-experimental-form-filling", |
| 1033 IDS_FLAGS_ENABLE_EXPERIMENTAL_FORM_FILLING_NAME, |
| 1034 IDS_FLAGS_ENABLE_EXPERIMENTAL_FORM_FILLING_DESCRIPTION, |
| 1035 kOsWin | kOsCrOS, |
| 1036 SINGLE_VALUE_TYPE(switches::kEnableExperimentalFormFilling) |
| 1037 }, |
| 1031 }; | 1038 }; |
| 1032 | 1039 |
| 1033 const Experiment* experiments = kExperiments; | 1040 const Experiment* experiments = kExperiments; |
| 1034 size_t num_experiments = arraysize(kExperiments); | 1041 size_t num_experiments = arraysize(kExperiments); |
| 1035 | 1042 |
| 1036 // Stores and encapsulates the little state that about:flags has. | 1043 // Stores and encapsulates the little state that about:flags has. |
| 1037 class FlagsState { | 1044 class FlagsState { |
| 1038 public: | 1045 public: |
| 1039 FlagsState() : needs_restart_(false) {} | 1046 FlagsState() : needs_restart_(false) {} |
| 1040 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1047 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 } | 1464 } |
| 1458 | 1465 |
| 1459 const Experiment* GetExperiments(size_t* count) { | 1466 const Experiment* GetExperiments(size_t* count) { |
| 1460 *count = num_experiments; | 1467 *count = num_experiments; |
| 1461 return experiments; | 1468 return experiments; |
| 1462 } | 1469 } |
| 1463 | 1470 |
| 1464 } // namespace testing | 1471 } // namespace testing |
| 1465 | 1472 |
| 1466 } // namespace about_flags | 1473 } // namespace about_flags |
| OLD | NEW |