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

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

Issue 1131933009: Making Mandoline apps notice when all the objects they vended are gone so that it can terminate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update 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.h
diff --git a/mandoline/services/core_services/core_services_application_delegate.h b/mandoline/services/core_services/core_services_application_delegate.h
index 503dcfed76d9c902c3a9b35d81e75d9d07f534be..8acd0d2e68569442bb3e02f16eaa6bb471e53f73 100644
--- a/mandoline/services/core_services/core_services_application_delegate.h
+++ b/mandoline/services/core_services/core_services_application_delegate.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
+#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
#include "components/clipboard/public/interfaces/clipboard.mojom.h"
#include "mojo/application/public/cpp/application_delegate.h"
@@ -50,6 +51,8 @@ class CoreServicesApplicationDelegate
ScopedVector<ApplicationThread> application_threads_;
+ base::WeakPtrFactory<CoreServicesApplicationDelegate> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(CoreServicesApplicationDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698