Commit c6a95dba authored by kinuko@chromium.org's avatar kinuko@chromium.org

Cleanup: remove temporary ifdefs for multi-sided patch in EmbeddedWorkerContextClient

Now that blink side's landed and rolled we no longer need
HAS_SERVICE_WORKER_CONTEXT_DESTROYED ifdefs

BUG=366617
TEST=no functional changes

Review URL: https://codereview.chromium.org/273423003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269761 0039d316-1c4b-4281-b951-d872f2087c98
parent 8ab613cf
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment