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

Unified Diff: chrome/browser/extensions/extension_system_impl.h

Issue 2623273011: Move Chrome terminating notification out of //apps (Closed)
Patch Set: remove DEPS rule Created 3 years, 11 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 | « chrome/browser/extensions/DEPS ('k') | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_system_impl.h
diff --git a/chrome/browser/extensions/extension_system_impl.h b/chrome/browser/extensions/extension_system_impl.h
index 03a6c890a8b175a07277e481c72066c4696ed85f..fb8d8f1de28b5b141de3b4142c3c3833bd3065f6 100644
--- a/chrome/browser/extensions/extension_system_impl.h
+++ b/chrome/browser/extensions/extension_system_impl.h
@@ -9,6 +9,8 @@
#include "base/macros.h"
#include "build/build_config.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/one_shot_event.h"
@@ -78,7 +80,7 @@ class ExtensionSystemImpl : public ExtensionSystem {
// Owns the Extension-related systems that have a single instance
// shared between normal and incognito profiles.
- class Shared : public KeyedService {
+ class Shared : public KeyedService, public content::NotificationObserver {
public:
explicit Shared(Profile* profile);
~Shared() override;
@@ -108,10 +110,16 @@ class ExtensionSystemImpl : public ExtensionSystem {
ContentVerifier* content_verifier();
private:
+ // content::NotificationObserver implementation.
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
+
Profile* profile_;
// The services that are shared between normal and incognito profiles.
+ content::NotificationRegistrar registrar_;
std::unique_ptr<StateStore> state_store_;
std::unique_ptr<StateStoreNotificationObserver>
state_store_notification_observer_;
« no previous file with comments | « chrome/browser/extensions/DEPS ('k') | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698