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

Unified Diff: content/shell/renderer/shell_render_process_observer.cc

Issue 147973002: Move SetJavaScriptFlags() from webkit to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 6 years, 11 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/renderer/render_process_impl.cc ('k') | content/test/test_webkit_platform_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/shell_render_process_observer.cc
diff --git a/content/shell/renderer/shell_render_process_observer.cc b/content/shell/renderer/shell_render_process_observer.cc
index 7c332a7884867862e773dcdf2609f3aa61485cb0..9760c64f9cd7106683f4d08de3489898693bfb87 100644
--- a/content/shell/renderer/shell_render_process_observer.cc
+++ b/content/shell/renderer/shell_render_process_observer.cc
@@ -16,7 +16,7 @@
#include "content/shell/renderer/webkit_test_runner.h"
#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
#include "third_party/WebKit/public/web/WebView.h"
-#include "webkit/glue/webkit_glue.h"
+#include "v8/include/v8.h"
using blink::WebFrame;
using blink::WebRuntimeFeatures;
@@ -66,7 +66,8 @@ void ShellRenderProcessObserver::WebKitInitialized() {
return;
// We always expose GC to layout tests.
- webkit_glue::SetJavaScriptFlags(" --expose-gc");
+ std::string flags("--expose-gc");
+ v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kStableReleaseMode)) {
« no previous file with comments | « content/renderer/render_process_impl.cc ('k') | content/test/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698