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

Side by Side Diff: content/child/runtime_features.cc

Issue 2451943002: Remove runtime flag 'UnsafeES3APIs' from blink webgl (Closed)
Patch Set: Addressed kbr@'s feedback, and rebased the code Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 WebRuntimeFeatures::enableRootLayerScrolling(true); 182 WebRuntimeFeatures::enableRootLayerScrolling(true);
183 183
184 if (command_line.HasSwitch(switches::kDisablePermissionsAPI)) 184 if (command_line.HasSwitch(switches::kDisablePermissionsAPI))
185 WebRuntimeFeatures::enablePermissionsAPI(false); 185 WebRuntimeFeatures::enablePermissionsAPI(false);
186 186
187 if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) 187 if (command_line.HasSwitch(switches::kDisableV8IdleTasks))
188 WebRuntimeFeatures::enableV8IdleTasks(false); 188 WebRuntimeFeatures::enableV8IdleTasks(false);
189 else 189 else
190 WebRuntimeFeatures::enableV8IdleTasks(true); 190 WebRuntimeFeatures::enableV8IdleTasks(true);
191 191
192 if (command_line.HasSwitch(switches::kEnableUnsafeES3APIs))
193 WebRuntimeFeatures::enableUnsafeES3APIs(true);
194
195 if (command_line.HasSwitch(switches::kEnableWebVR)) 192 if (command_line.HasSwitch(switches::kEnableWebVR))
196 WebRuntimeFeatures::enableWebVR(true); 193 WebRuntimeFeatures::enableWebVR(true);
197 194
198 if (command_line.HasSwitch(switches::kDisablePresentationAPI)) 195 if (command_line.HasSwitch(switches::kDisablePresentationAPI))
199 WebRuntimeFeatures::enablePresentationAPI(false); 196 WebRuntimeFeatures::enablePresentationAPI(false);
200 197
201 const std::string webfonts_intervention_v2_group_name = 198 const std::string webfonts_intervention_v2_group_name =
202 base::FieldTrialList::FindFullName("WebFontsInterventionV2"); 199 base::FieldTrialList::FindFullName("WebFontsInterventionV2");
203 const std::string webfonts_intervention_v2_about_flag = 200 const std::string webfonts_intervention_v2_about_flag =
204 command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2); 201 command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 322 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
326 std::vector<std::string> disabled_features = base::SplitString( 323 std::vector<std::string> disabled_features = base::SplitString(
327 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 324 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
328 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 325 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
329 for (const std::string& feature : disabled_features) 326 for (const std::string& feature : disabled_features)
330 WebRuntimeFeatures::enableFeatureFromString(feature, false); 327 WebRuntimeFeatures::enableFeatureFromString(feature, false);
331 } 328 }
332 } 329 }
333 330
334 } // namespace content 331 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698