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

Unified Diff: content/browser/service_worker/embedded_worker_instance.cc

Issue 661423002: DevTools: Clean-up service/shared workers code after switching to main thread debugging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some more code Created 6 years, 2 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
Index: content/browser/service_worker/embedded_worker_instance.cc
diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc
index c22c5030d7589d0203d631a9cc53b3e3f32f0481..26652dff2180cb833fd2aa50905b2a1d48c7133f 100644
--- a/content/browser/service_worker/embedded_worker_instance.cc
+++ b/content/browser/service_worker/embedded_worker_instance.cc
@@ -45,19 +45,6 @@ void NotifyWorkerReadyForInspection(int worker_process_id,
worker_process_id, worker_route_id);
}
-void NotifyWorkerContextStarted(int worker_process_id, int worker_route_id) {
- if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
- BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(
- NotifyWorkerContextStarted, worker_process_id, worker_route_id));
- return;
- }
- EmbeddedWorkerDevToolsManager::GetInstance()->WorkerContextStarted(
- worker_process_id, worker_route_id);
-}
-
void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id) {
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
BrowserThread::PostTask(
@@ -271,8 +258,6 @@ void EmbeddedWorkerInstance::OnReadyForInspection() {
void EmbeddedWorkerInstance::OnScriptLoaded(int thread_id) {
thread_id_ = thread_id;
- if (worker_devtools_agent_route_id_ != MSG_ROUTING_NONE)
- NotifyWorkerContextStarted(process_id_, worker_devtools_agent_route_id_);
}
void EmbeddedWorkerInstance::OnScriptLoadFailed() {

Powered by Google App Engine
This is Rietveld 408576698