| 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())
|
|
|