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

Unified Diff: chrome/browser/drive/drive_notification_manager.h

Issue 23514025: Use GetForBrowserContext instead of GetForProfile for DriveNotificationManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & resolve conflict Created 7 years, 3 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: chrome/browser/drive/drive_notification_manager.h
diff --git a/chrome/browser/drive/drive_notification_manager.h b/chrome/browser/drive/drive_notification_manager.h
index f519a410a89455cc5017265fc9f9f90a386ebdfa..e9016698bc50a5a613f5a2b0af61b820e64149dc 100644
--- a/chrome/browser/drive/drive_notification_manager.h
+++ b/chrome/browser/drive/drive_notification_manager.h
@@ -12,9 +12,12 @@
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
#include "sync/notifier/invalidation_handler.h"
-class Profile;
class ProfileSyncService;
+namespace invalidation {
+class InvalidationService;
+}
+
namespace drive {
// Informs observers when they should check Google Drive for updates.
@@ -25,7 +28,8 @@ class DriveNotificationManager
: public BrowserContextKeyedService,
public syncer::InvalidationHandler {
public:
- explicit DriveNotificationManager(Profile* profile);
+ explicit DriveNotificationManager(
+ invalidation::InvalidationService* invalidation_service);
virtual ~DriveNotificationManager();
// BrowserContextKeyedService override.
@@ -69,7 +73,7 @@ class DriveNotificationManager
// Returns a string representation of NotificationSource.
static std::string NotificationSourceToString(NotificationSource source);
- Profile* profile_;
+ invalidation::InvalidationService* invalidation_service_;
ObserverList<DriveNotificationObserver> observers_;
// True when Drive File Sync Service is registered for Drive notifications.
« no previous file with comments | « chrome/browser/chromeos/drive/drive_integration_service.cc ('k') | chrome/browser/drive/drive_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698