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 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 kOsAll, | 1258 kOsAll, |
1259 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) | 1259 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) |
1260 }, | 1260 }, |
1261 { | 1261 { |
1262 "enable-sync-dictionary", | 1262 "enable-sync-dictionary", |
1263 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME, | 1263 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME, |
1264 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION, | 1264 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION, |
1265 kOsWin | kOsCrOS | kOsLinux, | 1265 kOsWin | kOsCrOS | kOsLinux, |
1266 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary) | 1266 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary) |
1267 }, | 1267 }, |
| 1268 { |
| 1269 "disable-impl-side-painting", |
| 1270 IDS_FLAGS_DISABLE_IMPL_SIDE_PAINTING_NAME, |
| 1271 IDS_FLAGS_DISABLE_IMPL_SIDE_PAINTING_DESCRIPTION, |
| 1272 kOsAndroid, |
| 1273 SINGLE_VALUE_TYPE(cc::switches::kDisableImplSidePainting) |
| 1274 }, |
1268 }; | 1275 }; |
1269 | 1276 |
1270 const Experiment* experiments = kExperiments; | 1277 const Experiment* experiments = kExperiments; |
1271 size_t num_experiments = arraysize(kExperiments); | 1278 size_t num_experiments = arraysize(kExperiments); |
1272 | 1279 |
1273 // Stores and encapsulates the little state that about:flags has. | 1280 // Stores and encapsulates the little state that about:flags has. |
1274 class FlagsState { | 1281 class FlagsState { |
1275 public: | 1282 public: |
1276 FlagsState() : needs_restart_(false) {} | 1283 FlagsState() : needs_restart_(false) {} |
1277 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1284 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 } | 1701 } |
1695 | 1702 |
1696 const Experiment* GetExperiments(size_t* count) { | 1703 const Experiment* GetExperiments(size_t* count) { |
1697 *count = num_experiments; | 1704 *count = num_experiments; |
1698 return experiments; | 1705 return experiments; |
1699 } | 1706 } |
1700 | 1707 |
1701 } // namespace testing | 1708 } // namespace testing |
1702 | 1709 |
1703 } // namespace about_flags | 1710 } // namespace about_flags |
OLD | NEW |