| 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 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 kOsAll, | 1063 kOsAll, |
| 1064 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) | 1064 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) |
| 1065 }, | 1065 }, |
| 1066 { | 1066 { |
| 1067 "enable-web-intents-invocation", | 1067 "enable-web-intents-invocation", |
| 1068 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME, | 1068 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME, |
| 1069 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION, | 1069 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION, |
| 1070 kOsAll, | 1070 kOsAll, |
| 1071 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) | 1071 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) |
| 1072 }, | 1072 }, |
| 1073 { |
| 1074 "show-app-list-shortcut", |
| 1075 IDS_FLAGS_SHOW_APP_LIST_SHORTCUT_NAME, |
| 1076 IDS_FLAGS_SHOW_APP_LIST_SHORTCUT_DESCRIPTION, |
| 1077 kOsWin, |
| 1078 SINGLE_VALUE_TYPE(switches::kShowAppListShortcut) |
| 1079 }, |
| 1073 }; | 1080 }; |
| 1074 | 1081 |
| 1075 const Experiment* experiments = kExperiments; | 1082 const Experiment* experiments = kExperiments; |
| 1076 size_t num_experiments = arraysize(kExperiments); | 1083 size_t num_experiments = arraysize(kExperiments); |
| 1077 | 1084 |
| 1078 // Stores and encapsulates the little state that about:flags has. | 1085 // Stores and encapsulates the little state that about:flags has. |
| 1079 class FlagsState { | 1086 class FlagsState { |
| 1080 public: | 1087 public: |
| 1081 FlagsState() : needs_restart_(false) {} | 1088 FlagsState() : needs_restart_(false) {} |
| 1082 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1089 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 } | 1506 } |
| 1500 | 1507 |
| 1501 const Experiment* GetExperiments(size_t* count) { | 1508 const Experiment* GetExperiments(size_t* count) { |
| 1502 *count = num_experiments; | 1509 *count = num_experiments; |
| 1503 return experiments; | 1510 return experiments; |
| 1504 } | 1511 } |
| 1505 | 1512 |
| 1506 } // namespace testing | 1513 } // namespace testing |
| 1507 | 1514 |
| 1508 } // namespace about_flags | 1515 } // namespace about_flags |
| OLD | NEW |