| 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;
|
| }
|
|
|
|
|