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

Unified Diff: content/renderer/service_worker/embedded_worker_context_client.cc

Issue 273423003: Cleanup: remove temporary ifdefs for multi-sided patch in EmbeddedWorkerContextClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/service_worker/embedded_worker_context_client.cc
diff --git a/content/renderer/service_worker/embedded_worker_context_client.cc b/content/renderer/service_worker/embedded_worker_context_client.cc
index 4bd06359952f876171e7faaf93b5a210ad1d77fe..86c517a3cfeae83b10079f1fb7e3a170a21e6d5b 100644
--- a/content/renderer/service_worker/embedded_worker_context_client.cc
+++ b/content/renderer/service_worker/embedded_worker_context_client.cc
@@ -165,26 +165,15 @@ void EmbeddedWorkerContextClient::willDestroyWorkerContext() {
// worker_task_runner_->RunsTasksOnCurrentThread() returns false
// (while we're still on the worker thread).
script_context_.reset();
-
-#if !defined(HAS_SERVICE_WORKER_CONTEXT_DESTROYED)
- // TODO(kinuko): Remove this after blink side is landed.
- main_thread_proxy_->PostTask(
- FROM_HERE,
- base::Bind(&CallWorkerContextDestroyedOnMainThread,
- embedded_worker_id_));
-#endif
}
void EmbeddedWorkerContextClient::workerContextDestroyed() {
- // TODO(kinuko): Remove this ifdef after blink side is landed.
-#ifdef HAS_SERVICE_WORKER_CONTEXT_DESTROYED
// Now we should be able to free the WebEmbeddedWorker container on the
// main thread.
main_thread_proxy_->PostTask(
FROM_HERE,
base::Bind(&CallWorkerContextDestroyedOnMainThread,
embedded_worker_id_));
-#endif
}
void EmbeddedWorkerContextClient::reportException(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698