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

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

Issue 6179002: Added group policy for disabling all client-side 3D APIs in Chromium ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/597/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/sandbox_policy.cc ('k') | chrome/worker/worker_thread.cc » ('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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 WebRuntimeFeatures::enableSessionStorage( 936 WebRuntimeFeatures::enableSessionStorage(
937 !command_line.HasSwitch(switches::kDisableSessionStorage)); 937 !command_line.HasSwitch(switches::kDisableSessionStorage));
938 938
939 WebRuntimeFeatures::enableIndexedDatabase( 939 WebRuntimeFeatures::enableIndexedDatabase(
940 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); 940 !command_line.HasSwitch(switches::kDisableIndexedDatabase));
941 941
942 WebRuntimeFeatures::enableGeolocation( 942 WebRuntimeFeatures::enableGeolocation(
943 !command_line.HasSwitch(switches::kDisableGeolocation)); 943 !command_line.HasSwitch(switches::kDisableGeolocation));
944 944
945 WebRuntimeFeatures::enableWebGL( 945 WebRuntimeFeatures::enableWebGL(
946 !command_line.HasSwitch(switches::kDisable3DAPIs) &&
946 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); 947 !command_line.HasSwitch(switches::kDisableExperimentalWebGL));
947 948
948 WebRuntimeFeatures::enablePushState(true); 949 WebRuntimeFeatures::enablePushState(true);
949 950
950 WebRuntimeFeatures::enableTouch( 951 WebRuntimeFeatures::enableTouch(
951 command_line.HasSwitch(switches::kEnableTouch)); 952 command_line.HasSwitch(switches::kEnableTouch));
952 953
953 WebRuntimeFeatures::enableDeviceMotion( 954 WebRuntimeFeatures::enableDeviceMotion(
954 command_line.HasSwitch(switches::kEnableDeviceMotion)); 955 command_line.HasSwitch(switches::kEnableDeviceMotion));
955 956
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 } 1145 }
1145 1146
1146 return false; 1147 return false;
1147 } 1148 }
1148 1149
1149 void RenderThread::RegisterExtension(v8::Extension* extension, 1150 void RenderThread::RegisterExtension(v8::Extension* extension,
1150 bool restrict_to_extensions) { 1151 bool restrict_to_extensions) {
1151 WebScriptController::registerExtension(extension); 1152 WebScriptController::registerExtension(extension);
1152 v8_extensions_[extension->name()] = restrict_to_extensions; 1153 v8_extensions_[extension->name()] = restrict_to_extensions;
1153 } 1154 }
OLDNEW
« no previous file with comments | « chrome/common/sandbox_policy.cc ('k') | chrome/worker/worker_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698