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

Unified Diff: services/ui/service.cc

Issue 2295433003: Changes around how browser_tests are launched for mash (Closed)
Patch Set: make manifest chromeos specific Created 4 years, 4 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 | « mash/package/mash_packaged_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/service.cc
diff --git a/services/ui/service.cc b/services/ui/service.cc
index c58d1b8abe4391bb13f708d91f1afe8c3954220b..a11b3927d83fbe97ab80bd40f3fba19d7649dcff 100644
--- a/services/ui/service.cc
+++ b/services/ui/service.cc
@@ -231,8 +231,10 @@ void Service::OnFirstDisplayReady() {
void Service::OnNoMoreDisplays() {
// We may get here from the destructor, in which case there is no messageloop.
- if (base::MessageLoop::current())
+ if (base::MessageLoop::current() &&
+ base::MessageLoop::current()->is_running()) {
base::MessageLoop::current()->QuitWhenIdle();
+ }
}
bool Service::IsTestConfig() const {
« no previous file with comments | « mash/package/mash_packaged_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698