| 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;
|
| }
|
|
|
|
|