| 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 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 kOsAll, | 1289 kOsAll, |
| 1290 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) | 1290 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) |
| 1291 }, | 1291 }, |
| 1292 { | 1292 { |
| 1293 "enable-sync-dictionary", | 1293 "enable-sync-dictionary", |
| 1294 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME, | 1294 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME, |
| 1295 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION, | 1295 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION, |
| 1296 kOsWin | kOsCrOS | kOsLinux, | 1296 kOsWin | kOsCrOS | kOsLinux, |
| 1297 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary) | 1297 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary) |
| 1298 }, | 1298 }, |
| 1299 { |
| 1300 "enable-usermedia-screen-capture", |
| 1301 IDS_FLAGS_ENABLE_SCREEN_CAPTURE_NAME, |
| 1302 IDS_FLAGS_ENABLE_SCREEN_CAPTURE_DESCRIPTION, |
| 1303 kOsDesktop, |
| 1304 SINGLE_VALUE_TYPE(switches::kEnableUserMediaScreenCapturing) |
| 1305 }, |
| 1299 }; | 1306 }; |
| 1300 | 1307 |
| 1301 const Experiment* experiments = kExperiments; | 1308 const Experiment* experiments = kExperiments; |
| 1302 size_t num_experiments = arraysize(kExperiments); | 1309 size_t num_experiments = arraysize(kExperiments); |
| 1303 | 1310 |
| 1304 // Stores and encapsulates the little state that about:flags has. | 1311 // Stores and encapsulates the little state that about:flags has. |
| 1305 class FlagsState { | 1312 class FlagsState { |
| 1306 public: | 1313 public: |
| 1307 FlagsState() : needs_restart_(false) {} | 1314 FlagsState() : needs_restart_(false) {} |
| 1308 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1315 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1725 } | 1732 } |
| 1726 | 1733 |
| 1727 const Experiment* GetExperiments(size_t* count) { | 1734 const Experiment* GetExperiments(size_t* count) { |
| 1728 *count = num_experiments; | 1735 *count = num_experiments; |
| 1729 return experiments; | 1736 return experiments; |
| 1730 } | 1737 } |
| 1731 | 1738 |
| 1732 } // namespace testing | 1739 } // namespace testing |
| 1733 | 1740 |
| 1734 } // namespace about_flags | 1741 } // namespace about_flags |
| OLD | NEW |