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

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

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files Created 4 years, 4 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/webui/browsing_history_handler.cc
diff --git a/chrome/browser/ui/webui/browsing_history_handler.cc b/chrome/browser/ui/webui/browsing_history_handler.cc
index 74308017f5642ba08dcc5dfa4684cda1f3472e13..1d077ead9c228c00a3ec5eaa01a89b235f77d805 100644
--- a/chrome/browser/ui/webui/browsing_history_handler.cc
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc
@@ -619,7 +619,7 @@ void BrowsingHistoryHandler::HandleClearBrowsingData(
void BrowsingHistoryHandler::HandleRemoveBookmark(const base::ListValue* args) {
base::string16 url = ExtractStringValue(args);
Profile* profile = Profile::FromWebUI(web_ui());
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile);
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile);
bookmarks::RemoveAllBookmarks(model, GURL(url));
}
@@ -671,7 +671,8 @@ void BrowsingHistoryHandler::MergeDuplicateResults(
void BrowsingHistoryHandler::ReturnResultsToFrontEnd() {
Profile* profile = Profile::FromWebUI(web_ui());
- BookmarkModel* bookmark_model = BookmarkModelFactory::GetForProfile(profile);
+ BookmarkModel* bookmark_model =
+ BookmarkModelFactory::GetForBrowserContext(profile);
SupervisedUserService* supervised_user_service = NULL;
#if defined(ENABLE_SUPERVISED_USERS)
if (profile->IsSupervised())
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_view_browsertest.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698