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

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

Issue 2451943002: Remove runtime flag 'UnsafeES3APIs' from blink webgl (Closed)
Patch Set: update layout test expectation for global-interface-listing-expected.txt 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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 WebRuntimeFeatures::enableRootLayerScrolling(true); 183 WebRuntimeFeatures::enableRootLayerScrolling(true);
184 184
185 if (command_line.HasSwitch(switches::kDisablePermissionsAPI)) 185 if (command_line.HasSwitch(switches::kDisablePermissionsAPI))
186 WebRuntimeFeatures::enablePermissionsAPI(false); 186 WebRuntimeFeatures::enablePermissionsAPI(false);
187 187
188 if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) 188 if (command_line.HasSwitch(switches::kDisableV8IdleTasks))
189 WebRuntimeFeatures::enableV8IdleTasks(false); 189 WebRuntimeFeatures::enableV8IdleTasks(false);
190 else 190 else
191 WebRuntimeFeatures::enableV8IdleTasks(true); 191 WebRuntimeFeatures::enableV8IdleTasks(true);
192 192
193 if (command_line.HasSwitch(switches::kEnableUnsafeES3APIs))
194 WebRuntimeFeatures::enableUnsafeES3APIs(true);
195
196 if (command_line.HasSwitch(switches::kEnableWebVR)) 193 if (command_line.HasSwitch(switches::kEnableWebVR))
197 WebRuntimeFeatures::enableWebVR(true); 194 WebRuntimeFeatures::enableWebVR(true);
198 195
199 if (command_line.HasSwitch(switches::kDisablePresentationAPI)) 196 if (command_line.HasSwitch(switches::kDisablePresentationAPI))
200 WebRuntimeFeatures::enablePresentationAPI(false); 197 WebRuntimeFeatures::enablePresentationAPI(false);
201 198
202 const std::string webfonts_intervention_v2_group_name = 199 const std::string webfonts_intervention_v2_group_name =
203 base::FieldTrialList::FindFullName("WebFontsInterventionV2"); 200 base::FieldTrialList::FindFullName("WebFontsInterventionV2");
204 const std::string webfonts_intervention_v2_about_flag = 201 const std::string webfonts_intervention_v2_about_flag =
205 command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2); 202 command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 328 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
332 std::vector<std::string> disabled_features = base::SplitString( 329 std::vector<std::string> disabled_features = base::SplitString(
333 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 330 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
334 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 331 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
335 for (const std::string& feature : disabled_features) 332 for (const std::string& feature : disabled_features)
336 WebRuntimeFeatures::enableFeatureFromString(feature, false); 333 WebRuntimeFeatures::enableFeatureFromString(feature, false);
337 } 334 }
338 } 335 }
339 336
340 } // namespace content 337 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698