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

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: 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/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..2d0454270e5fd20ad2ee9804e18e5189ed5f527c 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,20 @@ 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