diff options
Diffstat (limited to 'chrome/browser/extensions/shell_window_registry.cc')
-rw-r--r-- | chrome/browser/extensions/shell_window_registry.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/extensions/shell_window_registry.cc b/chrome/browser/extensions/shell_window_registry.cc index 85af8e7..05fd993 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; } |