summaryrefslogtreecommitdiffstats
path: root/content/worker/worker_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/worker/worker_thread.cc')
-rw-r--r--content/worker/worker_thread.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/worker/worker_thread.cc b/content/worker/worker_thread.cc
index 456457c..d19701a 100644
--- a/content/worker/worker_thread.cc
+++ b/content/worker/worker_thread.cc
@@ -23,7 +23,7 @@
#include "third_party/WebKit/public/web/WebDatabase.h"
#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
-#include "webkit/glue/webkit_glue.h"
+#include "v8/include/v8.h"
using blink::WebRuntimeFeatures;
@@ -41,8 +41,9 @@ WorkerThread::WorkerThread() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kJavaScriptFlags)) {
- webkit_glue::SetJavaScriptFlags(
+ std::string flags(
command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
+ v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
}
SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line);