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

Unified Diff: apps/shell_window_geometry_cache.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: apps/shell_window_geometry_cache.cc
diff --git a/apps/shell_window_geometry_cache.cc b/apps/shell_window_geometry_cache.cc
index 9b2a4f5933b2a4459ac28c963b3a568700aaf7e1..19901d9b9307ad3392c304ea71e2f2093e0ba644 100644
--- a/apps/shell_window_geometry_cache.cc
+++ b/apps/shell_window_geometry_cache.cc
@@ -236,7 +236,7 @@ void ShellWindowGeometryCache::OnExtensionUnloaded(
ShellWindowGeometryCache* ShellWindowGeometryCache::Factory::GetForContext(
content::BrowserContext* context, bool create) {
return static_cast<ShellWindowGeometryCache*>(
- GetInstance()->GetServiceForProfile(context, create));
+ GetInstance()->GetServiceForBrowserContext(context, create));
}
ShellWindowGeometryCache::Factory*
@@ -245,15 +245,16 @@ ShellWindowGeometryCache::Factory::GetInstance() {
}
ShellWindowGeometryCache::Factory::Factory()
- : ProfileKeyedServiceFactory("ShellWindowGeometryCache",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ShellWindowGeometryCache",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(extensions::ExtensionPrefsFactory::GetInstance());
}
ShellWindowGeometryCache::Factory::~Factory() {
}
-ProfileKeyedService*
+BrowserContextKeyedService*
ShellWindowGeometryCache::Factory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = Profile::FromBrowserContext(context);

Powered by Google App Engine
This is Rietveld 408576698