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

Unified Diff: chrome/browser/ui/tabs/pinned_tab_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: 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/ui/tabs/pinned_tab_service_factory.cc
diff --git a/chrome/browser/ui/tabs/pinned_tab_service_factory.cc b/chrome/browser/ui/tabs/pinned_tab_service_factory.cc
index 4496289b11fdf6ae1dc673ee63baf2f7e6792972..2d840688e2576c11ff6cc99e728cd4dae4539751 100644
--- a/chrome/browser/ui/tabs/pinned_tab_service_factory.cc
+++ b/chrome/browser/ui/tabs/pinned_tab_service_factory.cc
@@ -12,7 +12,7 @@
PinnedTabService* PinnedTabServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<PinnedTabService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
PinnedTabServiceFactory* PinnedTabServiceFactory::GetInstance() {
@@ -20,19 +20,19 @@ PinnedTabServiceFactory* PinnedTabServiceFactory::GetInstance() {
}
PinnedTabServiceFactory::PinnedTabServiceFactory()
- : ProfileKeyedServiceFactory("PinnedTabService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory("PinnedTabService",
+ BrowserContextDependencyManager::GetInstance()) {
}
PinnedTabServiceFactory::~PinnedTabServiceFactory() {
}
-ProfileKeyedService* PinnedTabServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* PinnedTabServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new PinnedTabService(static_cast<Profile*>(profile));
}
-bool PinnedTabServiceFactory::ServiceIsCreatedWithProfile() const {
+bool PinnedTabServiceFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698