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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service_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/sync_file_system/sync_file_system_service_factory.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service_factory.cc b/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
index 5a4f5ae7f326127e72bd7014f167ffd4be553d23..2bc77a92f16e2c7b19237d6a4b405a727e6b9acf 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
@@ -45,7 +45,9 @@ SyncFileSystemServiceFactory::SyncFileSystemServiceFactory()
SyncFileSystemServiceFactory::~SyncFileSystemServiceFactory() {}
ProfileKeyedService* SyncFileSystemServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
+
SyncFileSystemService* service = new SyncFileSystemService(profile);
scoped_ptr<LocalFileSyncService> local_file_service(
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service_factory.h ('k') | chrome/browser/themes/theme_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698