| Index: chrome/browser/extensions/shell_window_registry.cc
|
| diff --git a/chrome/browser/extensions/shell_window_registry.cc b/chrome/browser/extensions/shell_window_registry.cc
|
| index 85af8e7c59750cb8e031572596c901454cde2b3a..05fd9936c0a98aa48b288789ffc9da28b7888fd5 100644
|
| --- a/chrome/browser/extensions/shell_window_registry.cc
|
| +++ b/chrome/browser/extensions/shell_window_registry.cc
|
| @@ -256,7 +256,7 @@ void ShellWindowRegistry::BringToFront(ShellWindow* shell_window) {
|
| ShellWindowRegistry* ShellWindowRegistry::Factory::GetForProfile(
|
| Profile* profile, bool create) {
|
| return static_cast<ShellWindowRegistry*>(
|
| - GetInstance()->GetServiceForProfile(profile, create));
|
| + GetInstance()->GetServiceForBrowserContext(profile, create));
|
| }
|
|
|
| ShellWindowRegistry::Factory* ShellWindowRegistry::Factory::GetInstance() {
|
| @@ -264,19 +264,21 @@ ShellWindowRegistry::Factory* ShellWindowRegistry::Factory::GetInstance() {
|
| }
|
|
|
| ShellWindowRegistry::Factory::Factory()
|
| - : ProfileKeyedServiceFactory("ShellWindowRegistry",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory(
|
| + "ShellWindowRegistry",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| }
|
|
|
| ShellWindowRegistry::Factory::~Factory() {
|
| }
|
|
|
| -ProfileKeyedService* ShellWindowRegistry::Factory::BuildServiceInstanceFor(
|
| +BrowserContextKeyedService*
|
| +ShellWindowRegistry::Factory::BuildServiceInstanceFor(
|
| content::BrowserContext* profile) const {
|
| return new ShellWindowRegistry(static_cast<Profile*>(profile));
|
| }
|
|
|
| -bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const {
|
| +bool ShellWindowRegistry::Factory::ServiceIsCreatedWithBrowserContext() const {
|
| return true;
|
| }
|
|
|
|
|