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

Unified Diff: chrome/browser/google_apis/drive_notification_manager_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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/google_apis/drive_notification_manager_factory.cc
diff --git a/chrome/browser/google_apis/drive_notification_manager_factory.cc b/chrome/browser/google_apis/drive_notification_manager_factory.cc
index b2ec5e2dc12b5d1d6f2b1c0e161b8d613c6f2b88..71c85f06478f6180bcb8c50e729961e94538f5b5 100644
--- a/chrome/browser/google_apis/drive_notification_manager_factory.cc
+++ b/chrome/browser/google_apis/drive_notification_manager_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/google_apis/drive_notification_manager_factory.h"
#include "chrome/browser/google_apis/drive_notification_manager.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
@@ -36,8 +37,8 @@ DriveNotificationManagerFactory::DriveNotificationManagerFactory()
DriveNotificationManagerFactory::~DriveNotificationManagerFactory() {}
ProfileKeyedService* DriveNotificationManagerFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new DriveNotificationManager(profile);
+ content::BrowserContext* profile) const {
+ return new DriveNotificationManager(static_cast<Profile*>(profile));
}
} // namespace google_apis
« no previous file with comments | « chrome/browser/google_apis/drive_notification_manager_factory.h ('k') | chrome/browser/history/history_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698