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

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

Issue 6339004: Add run-time enable support for the web audio API... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 kOsWin | kOsLinux, 273 kOsWin | kOsLinux,
274 SINGLE_VALUE_TYPE(switches::kInstantAutocompleteImmediately) 274 SINGLE_VALUE_TYPE(switches::kInstantAutocompleteImmediately)
275 }, 275 },
276 { 276 {
277 "block-reading-third-party-cookies", 277 "block-reading-third-party-cookies",
278 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_NAME, 278 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_NAME,
279 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_DESCRIPTION, 279 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_DESCRIPTION,
280 kOsAll, 280 kOsAll,
281 SINGLE_VALUE_TYPE(switches::kBlockReadingThirdPartyCookies) 281 SINGLE_VALUE_TYPE(switches::kBlockReadingThirdPartyCookies)
282 }, 282 },
283 {
284 "webaudio",
285 IDS_FLAGS_WEBAUDIO_NAME,
286 IDS_FLAGS_WEBAUDIO_DESCRIPTION,
287 kOsMac, // FIXME(crogers): add windows and linux when FFT is ready.
darin (slow to review) 2011/01/19 23:32:43 in chromium, we use TODO instead of FIXME
Chris Rogers 2011/01/20 00:08:27 Done.
288 SINGLE_VALUE_TYPE(switches::kEnableWebAudio)
289 },
283 }; 290 };
284 291
285 const Experiment* experiments = kExperiments; 292 const Experiment* experiments = kExperiments;
286 size_t num_experiments = arraysize(kExperiments); 293 size_t num_experiments = arraysize(kExperiments);
287 294
288 // Stores and encapsulates the little state that about:flags has. 295 // Stores and encapsulates the little state that about:flags has.
289 class FlagsState { 296 class FlagsState {
290 public: 297 public:
291 FlagsState() : needs_restart_(false) {} 298 FlagsState() : needs_restart_(false) {}
292 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 299 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 } 697 }
691 698
692 const Experiment* GetExperiments(size_t* count) { 699 const Experiment* GetExperiments(size_t* count) {
693 *count = num_experiments; 700 *count = num_experiments;
694 return experiments; 701 return experiments;
695 } 702 }
696 703
697 } // namespace testing 704 } // namespace testing
698 705
699 } // namespace about_flags 706 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698