diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 23:25:44 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 23:25:44 +0000 |
commit | f1484c5242850142011c4db4572b9b742f6b56f5 (patch) | |
tree | 6cc51ae1fca2aea4a7f76ab9171a4247eff78a9f /chrome/browser/google_apis/drive_notification_manager_factory.cc | |
parent | 59bf05a05ddf1bec2d2a4ad6d38a3338a41b7805 (diff) | |
download | chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.zip chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.tar.gz chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.tar.bz2 |
Remove references to Profile from browser_context_keyed_service.
BUG=227219
R=joi@chromium.org
Review URL: https://codereview.chromium.org/15517005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_apis/drive_notification_manager_factory.cc')
-rw-r--r-- | chrome/browser/google_apis/drive_notification_manager_factory.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/google_apis/drive_notification_manager_factory.cc b/chrome/browser/google_apis/drive_notification_manager_factory.cc index 0d77ea7..9c28800 100644 --- a/chrome/browser/google_apis/drive_notification_manager_factory.cc +++ b/chrome/browser/google_apis/drive_notification_manager_factory.cc @@ -19,7 +19,7 @@ DriveNotificationManagerFactory::GetForProfile(Profile* profile) { return NULL; return static_cast<DriveNotificationManager*>( - GetInstance()->GetServiceForProfile(profile, true)); + GetInstance()->GetServiceForBrowserContext(profile, true)); } // static @@ -29,14 +29,16 @@ DriveNotificationManagerFactory::GetInstance() { } DriveNotificationManagerFactory::DriveNotificationManagerFactory() - : ProfileKeyedServiceFactory("DriveNotificationManager", - ProfileDependencyManager::GetInstance()) { + : BrowserContextKeyedServiceFactory( + "DriveNotificationManager", + BrowserContextDependencyManager::GetInstance()) { DependsOn(ProfileSyncServiceFactory::GetInstance()); } DriveNotificationManagerFactory::~DriveNotificationManagerFactory() {} -ProfileKeyedService* DriveNotificationManagerFactory::BuildServiceInstanceFor( +BrowserContextKeyedService* +DriveNotificationManagerFactory::BuildServiceInstanceFor( content::BrowserContext* profile) const { return new DriveNotificationManager(static_cast<Profile*>(profile)); } |