X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fworker%2Fworker_thread.cc;h=8425c167abe93768481a910639869f47aa8bbdf4;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=456457c4e780e6bb350d53946818d029557f7195;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/worker/worker_thread.cc b/src/content/worker/worker_thread.cc index 456457c..8425c16 100644 --- a/src/content/worker/worker_thread.cc +++ b/src/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(flags.size())); } SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line); @@ -116,18 +117,13 @@ bool WorkerThread::OnMessageReceived(const IPC::Message& msg) { void WorkerThread::OnCreateWorker( const WorkerProcessMsg_CreateWorker_Params& params) { - WorkerAppCacheInitInfo appcache_init_info( - params.creator_process_id, - params.shared_worker_appcache_id); - // WebSharedWorkerStub own themselves. new WebSharedWorkerStub( params.url, params.name, params.content_security_policy, params.security_policy_type, - params.route_id, - appcache_init_info); + params.route_id); } // The browser process is likely dead. Terminate all workers.