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

Unified Diff: content/common/mojo/embedded_application_runner.cc

Issue 2007383002: Fix invalid DCHECK in EmbeddedApplicationRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/common/mojo/embedded_application_runner.cc
diff --git a/content/common/mojo/embedded_application_runner.cc b/content/common/mojo/embedded_application_runner.cc
index 2bbd45e5f9e19b4cb10210265e36423741bdca99..c1a0f8f583dea077e46bb4214f615c53a42bd51c 100644
--- a/content/common/mojo/embedded_application_runner.cc
+++ b/content/common/mojo/embedded_application_runner.cc
@@ -30,7 +30,6 @@ class EmbeddedApplicationRunner::Instance
quit_task_runner_(base::ThreadTaskRunnerHandle::Get()),
application_task_runner_(info.application_task_runner) {
application_thread_checker_.DetachFromThread();
-
if (!use_own_thread_ && !application_task_runner_)
application_task_runner_ = base::ThreadTaskRunnerHandle::Get();
}
@@ -43,6 +42,7 @@ class EmbeddedApplicationRunner::Instance
thread_.reset(new base::Thread(name_));
thread_->Start();
application_task_runner_ = thread_->task_runner();
+ application_thread_checker_.DetachFromThread();
}
DCHECK(application_task_runner_);
« 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