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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
index e257fc09812390869ac82cb3f9a3bd4497be03dd..4f951f6ce0f46ae7678df5b3b1aac1d69d85d61f 100644
--- a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
@@ -15,7 +15,7 @@
FileBrowserPrivateAPI*
FileBrowserPrivateAPIFactory::GetForProfile(Profile* profile) {
return static_cast<FileBrowserPrivateAPI*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -25,9 +25,9 @@ FileBrowserPrivateAPIFactory::GetInstance() {
}
FileBrowserPrivateAPIFactory::FileBrowserPrivateAPIFactory()
- : ProfileKeyedServiceFactory(
+ : BrowserContextKeyedServiceFactory(
"FileBrowserPrivateAPI",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(drive::DriveIntegrationServiceFactory::GetInstance());
DependsOn(extensions::ExtensionSystemFactory::GetInstance());
}
@@ -35,7 +35,7 @@ FileBrowserPrivateAPIFactory::FileBrowserPrivateAPIFactory()
FileBrowserPrivateAPIFactory::~FileBrowserPrivateAPIFactory() {
}
-ProfileKeyedService* FileBrowserPrivateAPIFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* FileBrowserPrivateAPIFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new FileBrowserPrivateAPI(static_cast<Profile*>(profile));
}
@@ -46,7 +46,7 @@ content::BrowserContext* FileBrowserPrivateAPIFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextOwnInstanceInIncognito(context);
}
-bool FileBrowserPrivateAPIFactory::ServiceIsCreatedWithProfile() const {
+bool FileBrowserPrivateAPIFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698