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

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

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 0376c0222ca21dc2f3f598e2fafe0c53ded0feb1..0f1e34c25b95ad1e65ce7352f26053c225d59120 100644
--- a/content/browser/service_worker/embedded_worker_instance.cc
+++ b/content/browser/service_worker/embedded_worker_instance.cc
@@ -19,9 +19,12 @@ bool EmbeddedWorkerInstance::Start(
int64 service_worker_version_id,
const GURL& script_url,
const IPC::Message& initialize_message) {
+ LOG(ERROR) << "Starting EmbeddedWorkerInstance";
DCHECK(status_ == STOPPED);
- if (!ChooseProcess())
+ if (!ChooseProcess()) {
+ LOG(ERROR) << "Couldnl't find process to run worker..";
return false;
+ }
status_ = STARTING;
bool success = registry_->StartWorker(
process_id_,
@@ -76,6 +79,7 @@ EmbeddedWorkerInstance::EmbeddedWorkerInstance(
status_(STOPPED),
process_id_(-1),
thread_id_(-1) {
+ LOG(ERROR) << "Creating EmbeddedWorkerInstance";
}
void EmbeddedWorkerInstance::OnStarted(int thread_id) {

Powered by Google App Engine
This is Rietveld 408576698