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

Unified Diff: chrome/browser/sessions/tab_restore_service_factory.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/sessions/tab_restore_service_factory.cc
diff --git a/chrome/browser/sessions/tab_restore_service_factory.cc b/chrome/browser/sessions/tab_restore_service_factory.cc
index 1daa2c9b6c148943f88d99b7d878ae739384bdf2..0cf92c7ae7845ed99d5432286134cf4a0f92aecc 100644
--- a/chrome/browser/sessions/tab_restore_service_factory.cc
+++ b/chrome/browser/sessions/tab_restore_service_factory.cc
@@ -11,21 +11,21 @@
// static
TabRestoreService* TabRestoreServiceFactory::GetForProfile(Profile* profile) {
return static_cast<TabRestoreService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
TabRestoreService* TabRestoreServiceFactory::GetForProfileIfExisting(
Profile* profile) {
return static_cast<TabRestoreService*>(
- GetInstance()->GetServiceForProfile(profile, false));
+ GetInstance()->GetServiceForBrowserContext(profile, false));
}
// static
void TabRestoreServiceFactory::ResetForProfile(Profile* profile) {
TabRestoreServiceFactory* factory = GetInstance();
- factory->ProfileShutdown(profile);
- factory->ProfileDestroyed(profile);
+ factory->BrowserContextShutdown(profile);
+ factory->BrowserContextDestroyed(profile);
}
TabRestoreServiceFactory* TabRestoreServiceFactory::GetInstance() {
@@ -33,8 +33,9 @@ TabRestoreServiceFactory* TabRestoreServiceFactory::GetInstance() {
}
TabRestoreServiceFactory::TabRestoreServiceFactory()
- : ProfileKeyedServiceFactory("TabRestoreService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "TabRestoreService",
+ BrowserContextDependencyManager::GetInstance()) {
}
TabRestoreServiceFactory::~TabRestoreServiceFactory() {

Powered by Google App Engine
This is Rietveld 408576698