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

Unified Diff: chrome/browser/ui/ash/app_sync_ui_state.h

Issue 403843005: Cleanup/ Use ExtensionRegistry from app_sync_ui_state.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reorder functions Created 6 years, 5 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 | « no previous file | chrome/browser/ui/ash/app_sync_ui_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/app_sync_ui_state.h
diff --git a/chrome/browser/ui/ash/app_sync_ui_state.h b/chrome/browser/ui/ash/app_sync_ui_state.h
index 958db67c6fc6a1e6f1dc93a6a763a3945126c7c7..7794b283c35b1f31df068401788813fcfc39acb5 100644
--- a/chrome/browser/ui/ash/app_sync_ui_state.h
+++ b/chrome/browser/ui/ash/app_sync_ui_state.h
@@ -13,18 +13,23 @@
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/extension_registry_observer.h"
class AppSyncUIStateObserver;
class Profile;
class ProfileSyncService;
+namespace extensions {
+class ExtensionRegistry;
+}
+
// AppSyncUIState watches app sync and installation and change its state
// accordingly. Its status is for UI display only. It only watches for new
// normal user profile (i.e. it does not watch for guest profile or exsiting
// user profile) and lasts for at the most 1 minute.
class AppSyncUIState : public KeyedService,
- public content::NotificationObserver,
- public ProfileSyncServiceObserver {
+ public ProfileSyncServiceObserver,
+ public extensions::ExtensionRegistryObserver {
public:
enum Status {
STATUS_NORMAL,
@@ -62,15 +67,13 @@ class AppSyncUIState : public KeyedService,
// Invoked when |max_syncing_status_timer_| fires.
void OnMaxSyncingTimer();
- // content::NotificationObserver overrides:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
// ProfileSyncServiceObserver overrides:
virtual void OnStateChanged() OVERRIDE;
- content::NotificationRegistrar registrar_;
+ // extensions::ExtensionRegistryObserver overrides:
+ virtual void OnExtensionLoaded(
+ content::BrowserContext* browser_context,
+ const extensions::Extension* extension) OVERRIDE;
Profile* profile_;
ProfileSyncService* sync_service_;
@@ -81,6 +84,8 @@ class AppSyncUIState : public KeyedService,
Status status_;
ObserverList<AppSyncUIStateObserver> observers_;
+ extensions::ExtensionRegistry* extension_registry_;
+
DISALLOW_COPY_AND_ASSIGN(AppSyncUIState);
};
« no previous file with comments | « no previous file | chrome/browser/ui/ash/app_sync_ui_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698