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

Unified Diff: content/renderer/render_process_impl.cc

Issue 2400823002: [asm.js] [wasm] Move asm->wasm + WebAssembly switches to features. (Closed)
Patch Set: fix Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/content_switches.cc ('k') | third_party/WebKit/LayoutTests/VirtualTestSuites » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_process_impl.cc
diff --git a/content/renderer/render_process_impl.cc b/content/renderer/render_process_impl.cc
index 57713f55f4354a06386d974c5506ae6bdefd6773..6e2f5572164fe7cfaec23741cce710917954ca16 100644
--- a/content/renderer/render_process_impl.cc
+++ b/content/renderer/render_process_impl.cc
@@ -17,6 +17,7 @@
#include "base/feature_list.h"
#include "base/sys_info.h"
#include "content/child/site_isolation_stats_gatherer.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/renderer/content_renderer_client.h"
#include "third_party/WebKit/public/web/WebFrame.h"
@@ -86,8 +87,8 @@ RenderProcessImpl::RenderProcessImpl()
SetV8FlagIfHasSwitch(switches::kDisableJavaScriptHarmonyShipping,
"--noharmony-shipping");
SetV8FlagIfHasSwitch(switches::kJavaScriptHarmony, "--harmony");
- SetV8FlagIfHasSwitch(switches::kEnableAsmWasm, "--validate-asm");
- SetV8FlagIfHasSwitch(switches::kEnableWasm, "--expose-wasm");
+ SetV8FlagIfFeature(features::kAsmJsToWebAssembly, "--validate-asm");
+ SetV8FlagIfFeature(features::kWebAssembly, "--expose-wasm");
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
« no previous file with comments | « content/public/common/content_switches.cc ('k') | third_party/WebKit/LayoutTests/VirtualTestSuites » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698