| Index: chrome/browser/bookmarks/bookmark_model_factory.cc
|
| diff --git a/chrome/browser/bookmarks/bookmark_model_factory.cc b/chrome/browser/bookmarks/bookmark_model_factory.cc
|
| index dd2c6374053628a9712193f26ce627050e558152..d81df624dbcc1c6a5acbaf58a73c0d017fa0b6d4 100644
|
| --- a/chrome/browser/bookmarks/bookmark_model_factory.cc
|
| +++ b/chrome/browser/bookmarks/bookmark_model_factory.cc
|
| @@ -19,12 +19,12 @@
|
| // static
|
| BookmarkModel* BookmarkModelFactory::GetForProfile(Profile* profile) {
|
| return static_cast<BookmarkModel*>(
|
| - GetInstance()->GetServiceForProfile(profile, true));
|
| + GetInstance()->GetServiceForBrowserContext(profile, true));
|
| }
|
|
|
| BookmarkModel* BookmarkModelFactory::GetForProfileIfExists(Profile* profile) {
|
| return static_cast<BookmarkModel*>(
|
| - GetInstance()->GetServiceForProfile(profile, false));
|
| + GetInstance()->GetServiceForBrowserContext(profile, false));
|
| }
|
|
|
| // static
|
| @@ -33,13 +33,14 @@ BookmarkModelFactory* BookmarkModelFactory::GetInstance() {
|
| }
|
|
|
| BookmarkModelFactory::BookmarkModelFactory()
|
| - : ProfileKeyedServiceFactory("BookmarkModel",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory(
|
| + "BookmarkModel",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| }
|
|
|
| BookmarkModelFactory::~BookmarkModelFactory() {}
|
|
|
| -ProfileKeyedService* BookmarkModelFactory::BuildServiceInstanceFor(
|
| +BrowserContextKeyedService* BookmarkModelFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = static_cast<Profile*>(context);
|
| BookmarkModel* bookmark_model = new BookmarkModel(profile);
|
|
|