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

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

Issue 6027004: Revert 69753 - Added group policy for disabling all client-side 3D APIs in Ch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 WebRuntimeFeatures::enableSessionStorage( 945 WebRuntimeFeatures::enableSessionStorage(
946 !command_line.HasSwitch(switches::kDisableSessionStorage)); 946 !command_line.HasSwitch(switches::kDisableSessionStorage));
947 947
948 WebRuntimeFeatures::enableIndexedDatabase( 948 WebRuntimeFeatures::enableIndexedDatabase(
949 !command_line.HasSwitch(switches::kDisableIndexedDatabase)); 949 !command_line.HasSwitch(switches::kDisableIndexedDatabase));
950 950
951 WebRuntimeFeatures::enableGeolocation( 951 WebRuntimeFeatures::enableGeolocation(
952 !command_line.HasSwitch(switches::kDisableGeolocation)); 952 !command_line.HasSwitch(switches::kDisableGeolocation));
953 953
954 WebRuntimeFeatures::enableWebGL( 954 WebRuntimeFeatures::enableWebGL(
955 !command_line.HasSwitch(switches::kDisable3DAPIs) &&
956 !command_line.HasSwitch(switches::kDisableExperimentalWebGL)); 955 !command_line.HasSwitch(switches::kDisableExperimentalWebGL));
957 956
958 WebRuntimeFeatures::enablePushState(true); 957 WebRuntimeFeatures::enablePushState(true);
959 958
960 WebRuntimeFeatures::enableTouch( 959 WebRuntimeFeatures::enableTouch(
961 command_line.HasSwitch(switches::kEnableTouch)); 960 command_line.HasSwitch(switches::kEnableTouch));
962 961
963 WebRuntimeFeatures::enableDeviceMotion( 962 WebRuntimeFeatures::enableDeviceMotion(
964 command_line.HasSwitch(switches::kEnableDeviceMotion)); 963 command_line.HasSwitch(switches::kEnableDeviceMotion));
965 964
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 } 1147 }
1149 1148
1150 return false; 1149 return false;
1151 } 1150 }
1152 1151
1153 void RenderThread::RegisterExtension(v8::Extension* extension, 1152 void RenderThread::RegisterExtension(v8::Extension* extension,
1154 bool restrict_to_extensions) { 1153 bool restrict_to_extensions) {
1155 WebScriptController::registerExtension(extension); 1154 WebScriptController::registerExtension(extension);
1156 v8_extensions_[extension->name()] = restrict_to_extensions; 1155 v8_extensions_[extension->name()] = restrict_to_extensions;
1157 } 1156 }
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