Index: content/browser/service_worker/embedded_worker_registry.cc |
diff --git a/content/browser/service_worker/embedded_worker_registry.cc b/content/browser/service_worker/embedded_worker_registry.cc |
index 93743ee400aa0e03b9e60086622a7364c48f949b..750b26c002f12f954e74a28872275a093530f3dc 100644 |
--- a/content/browser/service_worker/embedded_worker_registry.cc |
+++ b/content/browser/service_worker/embedded_worker_registry.cc |
@@ -79,13 +79,14 @@ void EmbeddedWorkerRegistry::OnWorkerReadyForInspection( |
} |
void EmbeddedWorkerRegistry::OnWorkerScriptLoaded(int process_id, |
- int embedded_worker_id) { |
+ int thread_id, |
nasko
2014/08/26 15:58:24
style: From the style guide: "For function declara
|
+ int embedded_worker_id ) { |
WorkerInstanceMap::iterator found = worker_map_.find(embedded_worker_id); |
DCHECK(found != worker_map_.end()); |
DCHECK_EQ(found->second->process_id(), process_id); |
if (found == worker_map_.end() || found->second->process_id() != process_id) |
return; |
- found->second->OnScriptLoaded(); |
+ found->second->OnScriptLoaded(thread_id); |
} |
void EmbeddedWorkerRegistry::OnWorkerScriptLoadFailed(int process_id, |
@@ -99,7 +100,7 @@ void EmbeddedWorkerRegistry::OnWorkerScriptLoadFailed(int process_id, |
} |
void EmbeddedWorkerRegistry::OnWorkerStarted( |
- int process_id, int thread_id, int embedded_worker_id) { |
+ int process_id, int embedded_worker_id) { |
DCHECK(!ContainsKey(worker_process_map_, process_id) || |
worker_process_map_[process_id].count(embedded_worker_id) == 0); |
WorkerInstanceMap::iterator found = worker_map_.find(embedded_worker_id); |
@@ -108,11 +109,11 @@ void EmbeddedWorkerRegistry::OnWorkerStarted( |
if (found == worker_map_.end() || found->second->process_id() != process_id) |
return; |
worker_process_map_[process_id].insert(embedded_worker_id); |
- found->second->OnStarted(thread_id); |
+ found->second->OnStarted(); |
} |
-void EmbeddedWorkerRegistry::OnWorkerStopped( |
- int process_id, int embedded_worker_id) { |
+void EmbeddedWorkerRegistry::OnWorkerStopped(int process_id, |
+ int embedded_worker_id) { |
WorkerInstanceMap::iterator found = worker_map_.find(embedded_worker_id); |
DCHECK(found != worker_map_.end()); |
DCHECK_EQ(found->second->process_id(), process_id); |