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

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: fix crash in surfaces if surfaceimpl outlives the app, and a double delete in browser 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 0cf941bc42928fc62d11cd7b63757904aa7d3515..751407f2e8f9eee78008141b6ae88c22091be9bb 100644
--- a/mandoline/services/core_services/core_services_application_delegate.cc
+++ b/mandoline/services/core_services/core_services_application_delegate.cc
@@ -70,6 +70,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