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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 6364005: Revert 72261 - 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
« no previous file with comments | « chrome/common/render_messages.cc ('k') | webkit/glue/webpreferences.h » ('j') | 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) 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/renderer/render_thread.h" 5 #include "chrome/renderer/render_thread.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 !command_line.HasSwitch(switches::kDisableLocalStorage)); 930 !command_line.HasSwitch(switches::kDisableLocalStorage));
931 WebRuntimeFeatures::enableSessionStorage( 931 WebRuntimeFeatures::enableSessionStorage(
932 !command_line.HasSwitch(switches::kDisableSessionStorage)); 932 !command_line.HasSwitch(switches::kDisableSessionStorage));
933 933
934 WebRuntimeFeatures::enableIndexedDatabase( 934 WebRuntimeFeatures::enableIndexedDatabase(
935 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); 935 !command_line.HasSwitch(switches::kDisableIndexedDatabase));
936 936
937 WebRuntimeFeatures::enableGeolocation( 937 WebRuntimeFeatures::enableGeolocation(
938 !command_line.HasSwitch(switches::kDisableGeolocation)); 938 !command_line.HasSwitch(switches::kDisableGeolocation));
939 939
940 #ifdef HAS_WEBAUDIO_RUNTIMEFEATURES
941 WebRuntimeFeatures::enableWebAudio(
942 command_line.HasSwitch(switches::kEnableWebAudio));
943 #endif
944
945 WebRuntimeFeatures::enableWebGL( 940 WebRuntimeFeatures::enableWebGL(
946 !command_line.HasSwitch(switches::kDisable3DAPIs) && 941 !command_line.HasSwitch(switches::kDisable3DAPIs) &&
947 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); 942 !command_line.HasSwitch(switches::kDisableExperimentalWebGL));
948 943
949 WebRuntimeFeatures::enablePushState(true); 944 WebRuntimeFeatures::enablePushState(true);
950 945
951 WebRuntimeFeatures::enableTouch( 946 WebRuntimeFeatures::enableTouch(
952 command_line.HasSwitch(switches::kEnableTouch)); 947 command_line.HasSwitch(switches::kEnableTouch));
953 948
954 WebRuntimeFeatures::enableDeviceMotion( 949 WebRuntimeFeatures::enableDeviceMotion(
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 } 1134 }
1140 1135
1141 return false; 1136 return false;
1142 } 1137 }
1143 1138
1144 void RenderThread::RegisterExtension(v8::Extension* extension, 1139 void RenderThread::RegisterExtension(v8::Extension* extension,
1145 bool restrict_to_extensions) { 1140 bool restrict_to_extensions) {
1146 WebScriptController::registerExtension(extension); 1141 WebScriptController::registerExtension(extension);
1147 v8_extensions_[extension->name()] = restrict_to_extensions; 1142 v8_extensions_[extension->name()] = restrict_to_extensions;
1148 } 1143 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698