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

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

Issue 5996008: Reverse flag for kDisableExperimentalWebGL (Closed) Base URL: svn://svn.chromium.org/chrome/branches/597s/
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 | « src/chrome/common/sandbox_policy.cc ('k') | src/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::kDisableExperimentalWebGL)); 946 command_line.HasSwitch(switches::kEnableExperimentalWebGL));
947 947
948 WebRuntimeFeatures::enablePushState(true); 948 WebRuntimeFeatures::enablePushState(true);
949 949
950 WebRuntimeFeatures::enableTouch( 950 WebRuntimeFeatures::enableTouch(
951 command_line.HasSwitch(switches::kEnableTouch)); 951 command_line.HasSwitch(switches::kEnableTouch));
952 952
953 WebRuntimeFeatures::enableDeviceMotion( 953 WebRuntimeFeatures::enableDeviceMotion(
954 command_line.HasSwitch(switches::kEnableDeviceMotion)); 954 command_line.HasSwitch(switches::kEnableDeviceMotion));
955 955
956 WebRuntimeFeatures::enableDeviceOrientation( 956 WebRuntimeFeatures::enableDeviceOrientation(
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 } 1144 }
1145 1145
1146 return false; 1146 return false;
1147 } 1147 }
1148 1148
1149 void RenderThread::RegisterExtension(v8::Extension* extension, 1149 void RenderThread::RegisterExtension(v8::Extension* extension,
1150 bool restrict_to_extensions) { 1150 bool restrict_to_extensions) {
1151 WebScriptController::registerExtension(extension); 1151 WebScriptController::registerExtension(extension);
1152 v8_extensions_[extension->name()] = restrict_to_extensions; 1152 v8_extensions_[extension->name()] = restrict_to_extensions;
1153 } 1153 }
OLDNEW
« no previous file with comments | « src/chrome/common/sandbox_policy.cc ('k') | src/chrome/worker/worker_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698