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

Unified Diff: chrome/browser/drive/drive_notification_manager_factory.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_factory.h
diff --git a/chrome/browser/drive/drive_notification_manager_factory.h b/chrome/browser/drive/drive_notification_manager_factory.h
index 65340d09a4a6bef99416d5d6f5f644f85ce65b46..a0f1ffbe68342085069e6b378509c64cc400cc74 100644
--- a/chrome/browser/drive/drive_notification_manager_factory.h
+++ b/chrome/browser/drive/drive_notification_manager_factory.h
@@ -8,18 +8,21 @@
#include "base/memory/singleton.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace drive {
class DriveNotificationManager;
// Singleton that owns all DriveNotificationManager and associates them with
-// profiles.
+// browser contexts.
class DriveNotificationManagerFactory
: public BrowserContextKeyedServiceFactory {
public:
- static DriveNotificationManager* GetForProfile(Profile* profile);
+ static DriveNotificationManager* GetForBrowserContext(
+ content::BrowserContext* context);
static DriveNotificationManagerFactory* GetInstance();
@@ -31,7 +34,7 @@ class DriveNotificationManagerFactory
// BrowserContextKeyedServiceFactory implementation.
virtual BrowserContextKeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
+ content::BrowserContext* context) const OVERRIDE;
};
} // namespace drive
« no previous file with comments | « chrome/browser/drive/drive_notification_manager.cc ('k') | chrome/browser/drive/drive_notification_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698