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

Unified Diff: chrome/browser/bookmarks/bookmark_model_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/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..1a54a4df55593f88f6e35a168a2e637a0fa253d1 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,13 @@ BookmarkModelFactory* BookmarkModelFactory::GetInstance() {
}
BookmarkModelFactory::BookmarkModelFactory()
- : ProfileKeyedServiceFactory("BookmarkModel",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory("BookmarkModel",
+ BrowserContextDependencyManager::GetInstance()) {
tfarina 2013/05/22 00:28:03 indentation.
}
BookmarkModelFactory::~BookmarkModelFactory() {}
-ProfileKeyedService* BookmarkModelFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* BookmarkModelFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);
BookmarkModel* bookmark_model = new BookmarkModel(profile);

Powered by Google App Engine
This is Rietveld 408576698