summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/shell_window_registry.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-22 23:25:44 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-22 23:25:44 +0000
commitf1484c5242850142011c4db4572b9b742f6b56f5 (patch)
tree6cc51ae1fca2aea4a7f76ab9171a4247eff78a9f /chrome/browser/extensions/shell_window_registry.cc
parent59bf05a05ddf1bec2d2a4ad6d38a3338a41b7805 (diff)
downloadchromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.zip
chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.tar.gz
chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.tar.bz2
Remove references to Profile from browser_context_keyed_service.
BUG=227219 R=joi@chromium.org Review URL: https://codereview.chromium.org/15517005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/shell_window_registry.cc')
-rw-r--r--chrome/browser/extensions/shell_window_registry.cc12
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;
}