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

Unified Diff: chrome/browser/ui/webui/history_ui.cc

Issue 10824123: Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkModel to a PKS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/history_ui.cc
===================================================================
--- chrome/browser/ui/webui/history_ui.cc (revision 149222)
+++ chrome/browser/ui/webui/history_ui.cc (working copy)
@@ -19,6 +19,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/history/history_notifications.h"
#include "chrome/browser/history/history_service_factory.h"
@@ -305,7 +306,7 @@
void BrowsingHistoryHandler::HandleRemoveBookmark(const ListValue* args) {
string16 url = ExtractStringValue(args);
Profile* profile = Profile::FromWebUI(web_ui());
- BookmarkModel* model = profile->GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile);
bookmark_utils::RemoveAllBookmarks(model, GURL(url));
}
@@ -353,7 +354,8 @@
}
Profile* profile = Profile::FromWebUI(web_ui());
page_value->SetBoolean("starred",
- profile->GetBookmarkModel()->IsBookmarked(page.url()));
+ BookmarkModelFactory::GetForProfile(profile)->IsBookmarked(
+ page.url()));
results_value.Append(page_value);
}
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698