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

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

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: remove runtime flag unsafeES3APIs from blink webgl module 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)) 193 // if (command_line.HasSwitch(switches::kEnableUnsafeES3APIs))
194 WebRuntimeFeatures::enableUnsafeES3APIs(true); 194 // WebRuntimeFeatures::enableUnsafeES3APIs(true);
195 195
196 if (command_line.HasSwitch(switches::kEnableWebVR)) 196 if (command_line.HasSwitch(switches::kEnableWebVR))
197 WebRuntimeFeatures::enableWebVR(true); 197 WebRuntimeFeatures::enableWebVR(true);
198 198
199 if (command_line.HasSwitch(switches::kDisablePresentationAPI)) 199 if (command_line.HasSwitch(switches::kDisablePresentationAPI))
200 WebRuntimeFeatures::enablePresentationAPI(false); 200 WebRuntimeFeatures::enablePresentationAPI(false);
201 201
202 const std::string webfonts_intervention_v2_group_name = 202 const std::string webfonts_intervention_v2_group_name =
203 base::FieldTrialList::FindFullName("WebFontsInterventionV2"); 203 base::FieldTrialList::FindFullName("WebFontsInterventionV2");
204 const std::string webfonts_intervention_v2_about_flag = 204 const std::string webfonts_intervention_v2_about_flag =
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 331 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
332 std::vector<std::string> disabled_features = base::SplitString( 332 std::vector<std::string> disabled_features = base::SplitString(
333 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 333 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
334 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 334 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
335 for (const std::string& feature : disabled_features) 335 for (const std::string& feature : disabled_features)
336 WebRuntimeFeatures::enableFeatureFromString(feature, false); 336 WebRuntimeFeatures::enableFeatureFromString(feature, false);
337 } 337 }
338 } 338 }
339 339
340 } // namespace content 340 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698