Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 12211065: Add --enable-usermedia-screen-capturing in about:flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698