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

Unified Diff: content/worker/websharedworker_stub.cc

Issue 198073003: Remove some content_child dependency from content_common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ffd442cb fix for bots barfing on clang style checks Created 6 years, 9 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/websharedworker_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/websharedworker_stub.cc
diff --git a/content/worker/websharedworker_stub.cc b/content/worker/websharedworker_stub.cc
index 2737f6c422786f1ac3e74526ec7b8f9f2e490e5a..fd33a61a22c4e7b332991564367f034be2a55539 100644
--- a/content/worker/websharedworker_stub.cc
+++ b/content/worker/websharedworker_stub.cc
@@ -33,7 +33,7 @@ WebSharedWorkerStub::WebSharedWorkerStub(
DCHECK(worker_thread);
worker_thread->AddWorkerStub(this);
// Start processing incoming IPCs for this worker.
- worker_thread->AddRoute(route_id_, this);
+ worker_thread->GetRouter()->AddRoute(route_id_, this);
// TODO(atwilson): Add support for NaCl when they support MessagePorts.
impl_ = blink::WebSharedWorker::create(client());
@@ -48,7 +48,7 @@ WebSharedWorkerStub::~WebSharedWorkerStub() {
WorkerThread* worker_thread = WorkerThread::current();
DCHECK(worker_thread);
worker_thread->RemoveWorkerStub(this);
- worker_thread->RemoveRoute(route_id_);
+ worker_thread->GetRouter()->RemoveRoute(route_id_);
}
void WebSharedWorkerStub::Shutdown() {
« no previous file with comments | « content/renderer/websharedworker_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698