summaryrefslogtreecommitdiffstats
path: root/chrome/worker/websharedworker_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/worker/websharedworker_stub.cc')
-rw-r--r--chrome/worker/websharedworker_stub.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/worker/websharedworker_stub.cc b/chrome/worker/websharedworker_stub.cc
index f398244..32b5b38 100644
--- a/chrome/worker/websharedworker_stub.cc
+++ b/chrome/worker/websharedworker_stub.cc
@@ -11,14 +11,13 @@
#include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
WebSharedWorkerStub::WebSharedWorkerStub(
- const string16& name, int route_id)
- : WebWorkerStubBase(route_id),
+ const string16& name, int route_id,
+ const WorkerAppCacheInitInfo& appcache_init_info)
+ : WebWorkerStubBase(route_id, appcache_init_info),
name_(name),
started_(false) {
-
// TODO(atwilson): Add support for NaCl when they support MessagePorts.
impl_ = WebKit::WebSharedWorker::create(client());
-
}
WebSharedWorkerStub::~WebSharedWorkerStub() {
@@ -44,6 +43,10 @@ void WebSharedWorkerStub::OnStartWorkerContext(
// try to start it simultaneously).
if (started_)
return;
+
+ // TODO(michaeln): Fixup this callsite once
+ // https://bugs.webkit.org/show_bug.cgi?id=38605
+ // has landed and rolled into view.
impl_->startWorkerContext(url, name_, user_agent, source_code);
started_ = true;