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

Unified Diff: content/renderer/render_process_impl.cc

Issue 588543003: Let --js-flags work when Harmony is enabled in about:flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« chrome/browser/about_flags.cc ('K') | « content/public/common/content_switches.cc ('k') | no next file » | 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 421e60bcf9661736327ea97127ed5d8dbd4a1c6b..545d02705ffec8318c3d0ac5059997b6aa7c81f4 100644
--- a/content/renderer/render_process_impl.cc
+++ b/content/renderer/render_process_impl.cc
@@ -56,6 +56,11 @@ RenderProcessImpl::RenderProcessImpl()
v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
}
+ if (command_line.HasSwitch(switches::kJavaScriptHarmony)) {
+ std::string flags("--harmony");
+ v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
+ }
+
// Turn on cross-site document blocking for renderer processes.
SiteIsolationPolicy::SetPolicyEnabled(
GetContentClient()->renderer()->ShouldEnableSiteIsolationPolicy());
« chrome/browser/about_flags.cc ('K') | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698