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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 kOsAll, | 1275 kOsAll, |
1276 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) | 1276 SINGLE_VALUE_TYPE(switches::kHistoryEnableFullHistorySync) |
1277 }, | 1277 }, |
1278 { | 1278 { |
1279 "enable-usermedia-screen-capture", | 1279 "enable-usermedia-screen-capture", |
1280 IDS_FLAGS_ENABLE_SCREEN_CAPTURE_NAME, | 1280 IDS_FLAGS_ENABLE_SCREEN_CAPTURE_NAME, |
1281 IDS_FLAGS_ENABLE_SCREEN_CAPTURE_DESCRIPTION, | 1281 IDS_FLAGS_ENABLE_SCREEN_CAPTURE_DESCRIPTION, |
1282 kOsDesktop, | 1282 kOsDesktop, |
1283 SINGLE_VALUE_TYPE(switches::kEnableUserMediaScreenCapturing) | 1283 SINGLE_VALUE_TYPE(switches::kEnableUserMediaScreenCapturing) |
1284 }, | 1284 }, |
| 1285 { |
| 1286 "enable-apps-devtool-app", |
| 1287 IDS_FLAGS_ENABLE_APPS_DEVTOOL_APP_NAME, |
| 1288 IDS_FLAGS_ENABLE_APPS_DEVTOOL_APP_DESCRIPTION, |
| 1289 kOsDesktop, |
| 1290 SINGLE_VALUE_TYPE(switches::kAppsDevtool) |
| 1291 }, |
1285 }; | 1292 }; |
1286 | 1293 |
1287 const Experiment* experiments = kExperiments; | 1294 const Experiment* experiments = kExperiments; |
1288 size_t num_experiments = arraysize(kExperiments); | 1295 size_t num_experiments = arraysize(kExperiments); |
1289 | 1296 |
1290 // Stores and encapsulates the little state that about:flags has. | 1297 // Stores and encapsulates the little state that about:flags has. |
1291 class FlagsState { | 1298 class FlagsState { |
1292 public: | 1299 public: |
1293 FlagsState() : needs_restart_(false) {} | 1300 FlagsState() : needs_restart_(false) {} |
1294 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1301 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 } | 1718 } |
1712 | 1719 |
1713 const Experiment* GetExperiments(size_t* count) { | 1720 const Experiment* GetExperiments(size_t* count) { |
1714 *count = num_experiments; | 1721 *count = num_experiments; |
1715 return experiments; | 1722 return experiments; |
1716 } | 1723 } |
1717 | 1724 |
1718 } // namespace testing | 1725 } // namespace testing |
1719 | 1726 |
1720 } // namespace about_flags | 1727 } // namespace about_flags |
OLD | NEW |