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

Unified Diff: chrome/browser/extensions/shell_window_registry.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698