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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 7272006: Enable Web Audio API by default (no longer needs enable flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/tab_contents/render_view_host_delegate_helper.h" 5 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 web_prefs.xss_auditor_enabled = 287 web_prefs.xss_auditor_enabled =
288 !command_line.HasSwitch(switches::kDisableXSSAuditor); 288 !command_line.HasSwitch(switches::kDisableXSSAuditor);
289 web_prefs.application_cache_enabled = 289 web_prefs.application_cache_enabled =
290 !command_line.HasSwitch(switches::kDisableApplicationCache); 290 !command_line.HasSwitch(switches::kDisableApplicationCache);
291 291
292 web_prefs.local_storage_enabled = 292 web_prefs.local_storage_enabled =
293 !command_line.HasSwitch(switches::kDisableLocalStorage); 293 !command_line.HasSwitch(switches::kDisableLocalStorage);
294 web_prefs.databases_enabled = 294 web_prefs.databases_enabled =
295 !command_line.HasSwitch(switches::kDisableDatabases); 295 !command_line.HasSwitch(switches::kDisableDatabases);
296 web_prefs.webaudio_enabled = 296 web_prefs.webaudio_enabled =
297 command_line.HasSwitch(switches::kEnableWebAudio); 297 !command_line.HasSwitch(switches::kDisableWebAudio);
298 web_prefs.experimental_webgl_enabled = 298 web_prefs.experimental_webgl_enabled =
299 gpu_enabled() && 299 gpu_enabled() &&
300 !command_line.HasSwitch(switches::kDisable3DAPIs) && 300 !command_line.HasSwitch(switches::kDisable3DAPIs) &&
301 !prefs->GetBoolean(prefs::kDisable3DAPIs) && 301 !prefs->GetBoolean(prefs::kDisable3DAPIs) &&
302 !command_line.HasSwitch(switches::kDisableExperimentalWebGL); 302 !command_line.HasSwitch(switches::kDisableExperimentalWebGL);
303 web_prefs.gl_multisampling_enabled = 303 web_prefs.gl_multisampling_enabled =
304 !command_line.HasSwitch(switches::kDisableGLMultisampling); 304 !command_line.HasSwitch(switches::kDisableGLMultisampling);
305 web_prefs.site_specific_quirks_enabled = 305 web_prefs.site_specific_quirks_enabled =
306 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); 306 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks);
307 web_prefs.allow_file_access_from_file_urls = 307 web_prefs.allow_file_access_from_file_urls =
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 DictionaryPrefUpdate update(profile->GetPrefs(), 396 DictionaryPrefUpdate update(profile->GetPrefs(),
397 prefs::kWebKitInspectorSettings); 397 prefs::kWebKitInspectorSettings);
398 DictionaryValue* inspector_settings = update.Get(); 398 DictionaryValue* inspector_settings = update.Get();
399 inspector_settings->SetWithoutPathExpansion(key, 399 inspector_settings->SetWithoutPathExpansion(key,
400 Value::CreateStringValue(value)); 400 Value::CreateStringValue(value));
401 } 401 }
402 402
403 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) { 403 void RenderViewHostDelegateHelper::ClearInspectorSettings(Profile* profile) {
404 profile->GetPrefs()->ClearPref(prefs::kWebKitInspectorSettings); 404 profile->GetPrefs()->ClearPref(prefs::kWebKitInspectorSettings);
405 } 405 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698