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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 }, | 1146 }, |
1147 #if defined(USE_AURA) | 1147 #if defined(USE_AURA) |
1148 { | 1148 { |
1149 "enable-overscroll-history-navigation", | 1149 "enable-overscroll-history-navigation", |
1150 IDS_FLAGS_ENABLE_OVERSCROLL_HISTORY_NAVIGATION_NAME, | 1150 IDS_FLAGS_ENABLE_OVERSCROLL_HISTORY_NAVIGATION_NAME, |
1151 IDS_FLAGS_ENABLE_OVERSCROLL_HISTORY_NAVIGATION_DESCRIPTION, | 1151 IDS_FLAGS_ENABLE_OVERSCROLL_HISTORY_NAVIGATION_DESCRIPTION, |
1152 kOsAll, | 1152 kOsAll, |
1153 SINGLE_VALUE_TYPE(switches::kEnableOverscrollHistoryNavigation) | 1153 SINGLE_VALUE_TYPE(switches::kEnableOverscrollHistoryNavigation) |
1154 }, | 1154 }, |
1155 #endif | 1155 #endif |
1156 | |
1157 { | 1156 { |
1158 "enable-touch-drag-drop", | 1157 "enable-touch-drag-drop", |
1159 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_NAME, | 1158 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_NAME, |
1160 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_DESCRIPTION, | 1159 IDS_FLAGS_ENABLE_TOUCH_DRAG_DROP_DESCRIPTION, |
1161 kOsWin | kOsCrOS, | 1160 kOsWin | kOsCrOS, |
1162 SINGLE_VALUE_TYPE(switches::kEnableTouchDragDrop) | 1161 SINGLE_VALUE_TYPE(switches::kEnableTouchDragDrop) |
1163 }, | 1162 }, |
1164 { | 1163 { |
1165 "load-cloud-policy-on-signin", | 1164 "load-cloud-policy-on-signin", |
1166 IDS_FLAGS_DESKTOP_CLOUD_POLICY_NAME, | 1165 IDS_FLAGS_DESKTOP_CLOUD_POLICY_NAME, |
1167 IDS_FLAGS_DESKTOP_CLOUD_POLICY_DESCRIPTION, | 1166 IDS_FLAGS_DESKTOP_CLOUD_POLICY_DESCRIPTION, |
1168 kOsWin | kOsMac | kOsLinux, | 1167 kOsWin | kOsMac | kOsLinux, |
1169 SINGLE_VALUE_TYPE(switches::kLoadCloudPolicyOnSignin) | 1168 SINGLE_VALUE_TYPE(switches::kLoadCloudPolicyOnSignin) |
1170 }, | 1169 }, |
1171 { | 1170 { |
1172 "enable-rich-notifications", | 1171 "enable-rich-notifications", |
1173 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_NAME, | 1172 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_NAME, |
1174 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_DESCRIPTION, | 1173 IDS_FLAGS_ENABLE_RICH_NOTIFICATIONS_DESCRIPTION, |
1175 kOsWin | kOsCrOS, | 1174 kOsWin | kOsCrOS, |
1176 SINGLE_VALUE_TYPE(switches::kEnableRichNotifications) | 1175 SINGLE_VALUE_TYPE(switches::kEnableRichNotifications) |
1177 }, | 1176 }, |
1178 { | 1177 { |
1179 "full-history-sync", | 1178 "full-history-sync", |
1180 IDS_FLAGS_FULL_HISTORY_SYNC_NAME, | 1179 IDS_FLAGS_FULL_HISTORY_SYNC_NAME, |
1181 IDS_FLAGS_FULL_HISTORY_SYNC_DESCRIPTION, | 1180 IDS_FLAGS_FULL_HISTORY_SYNC_DESCRIPTION, |
1182 kOsAll, | 1181 kOsAll, |
1183 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) | 1182 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) |
1184 }, | 1183 }, |
| 1184 { |
| 1185 "enable-sync-dictionary", |
| 1186 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME, |
| 1187 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION, |
| 1188 kOsWin | kOsCrOS | kOsLinux, |
| 1189 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary) |
| 1190 }, |
1185 }; | 1191 }; |
1186 | 1192 |
1187 const Experiment* experiments = kExperiments; | 1193 const Experiment* experiments = kExperiments; |
1188 size_t num_experiments = arraysize(kExperiments); | 1194 size_t num_experiments = arraysize(kExperiments); |
1189 | 1195 |
1190 // Stores and encapsulates the little state that about:flags has. | 1196 // Stores and encapsulates the little state that about:flags has. |
1191 class FlagsState { | 1197 class FlagsState { |
1192 public: | 1198 public: |
1193 FlagsState() : needs_restart_(false) {} | 1199 FlagsState() : needs_restart_(false) {} |
1194 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1200 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 } | 1617 } |
1612 | 1618 |
1613 const Experiment* GetExperiments(size_t* count) { | 1619 const Experiment* GetExperiments(size_t* count) { |
1614 *count = num_experiments; | 1620 *count = num_experiments; |
1615 return experiments; | 1621 return experiments; |
1616 } | 1622 } |
1617 | 1623 |
1618 } // namespace testing | 1624 } // namespace testing |
1619 | 1625 |
1620 } // namespace about_flags | 1626 } // namespace about_flags |
OLD | NEW |