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

Unified Diff: mojo/shell/keep_alive.cc

Issue 399663002: Have mojo_shell run in its custom thread on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | « mojo/shell/dbus_service_loader_linux.cc ('k') | mojo/shell/task_runners.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/keep_alive.cc
diff --git a/mojo/shell/keep_alive.cc b/mojo/shell/keep_alive.cc
index 387c6a790c3730a9fb1fe02e7546b3bac58d0200..5e1bb62a178db488017b5f53a876177d97876ae2 100644
--- a/mojo/shell/keep_alive.cc
+++ b/mojo/shell/keep_alive.cc
@@ -11,12 +11,12 @@ namespace mojo {
namespace shell {
KeepAlive::KeepAlive(Context* context) : context_(context) {
- DCHECK(context_->task_runners()->ui_runner()->RunsTasksOnCurrentThread());
+ DCHECK(context_->task_runners()->shell_runner()->RunsTasksOnCurrentThread());
++context_->keep_alive_counter()->count_;
}
KeepAlive::~KeepAlive() {
- DCHECK(context_->task_runners()->ui_runner()->RunsTasksOnCurrentThread());
+ DCHECK(context_->task_runners()->shell_runner()->RunsTasksOnCurrentThread());
if (--context_->keep_alive_counter()->count_ == 0) {
base::MessageLoop::current()->PostTask(
FROM_HERE,
« no previous file with comments | « mojo/shell/dbus_service_loader_linux.cc ('k') | mojo/shell/task_runners.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698