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

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: 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 950f31442985361aeb7c12c31f14f4ad69fc9d06..9825b98a68b60a881aeeacebfa1186c456d8af27 100644
--- a/chrome/browser/extensions/shell_window_registry.cc
+++ b/chrome/browser/extensions/shell_window_registry.cc
@@ -230,7 +230,7 @@ void ShellWindowRegistry::OnDevToolsStateChanged(
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() {
@@ -238,19 +238,19 @@ 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