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

Unified Diff: mandoline/services/core_services/core_services_application_delegate.cc

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
Index: mandoline/services/core_services/core_services_application_delegate.cc
diff --git a/mandoline/services/core_services/core_services_application_delegate.cc b/mandoline/services/core_services/core_services_application_delegate.cc
index 90e9314d1e6dd5b5ec5900eb51287f6d5d56f97d..e531d42d1c75dcf76cf7e407d6c76f99250bf705 100644
--- a/mandoline/services/core_services/core_services_application_delegate.cc
+++ b/mandoline/services/core_services/core_services_application_delegate.cc
@@ -71,6 +71,8 @@ class ApplicationThread : public base::Thread {
}
void RequestQuit() {
+ if (!IsRunning())
+ return;
task_runner()->PostTask(
FROM_HERE,
base::Bind(&ApplicationThread::ShutdownCleanly,

Powered by Google App Engine
This is Rietveld 408576698