summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/history_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/history_ui.cc')
-rw-r--r--chrome/browser/ui/webui/history_ui.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc
index ba1a648..f88d4db 100644
--- a/chrome/browser/ui/webui/history_ui.cc
+++ b/chrome/browser/ui/webui/history_ui.cc
@@ -181,8 +181,7 @@ void BrowsingHistoryHandler::HandleGetHistory(const ListValue* args) {
hs->QueryHistory(search_text_,
options,
&cancelable_search_consumer_,
- base::Bind(&BrowsingHistoryHandler::QueryComplete,
- base::Unretained(this)));
+ NewCallback(this, &BrowsingHistoryHandler::QueryComplete));
}
void BrowsingHistoryHandler::HandleSearchHistory(const ListValue* args) {
@@ -207,8 +206,7 @@ void BrowsingHistoryHandler::HandleSearchHistory(const ListValue* args) {
hs->QueryHistory(search_text_,
options,
&cancelable_search_consumer_,
- base::Bind(&BrowsingHistoryHandler::QueryComplete,
- base::Unretained(this)));
+ NewCallback(this, &BrowsingHistoryHandler::QueryComplete));
}
void BrowsingHistoryHandler::HandleRemoveURLsOnOneDay(const ListValue* args) {
@@ -244,8 +242,7 @@ void BrowsingHistoryHandler::HandleRemoveURLsOnOneDay(const ListValue* args) {
Profile::FromWebUI(web_ui_)->GetHistoryService(Profile::EXPLICIT_ACCESS);
hs->ExpireHistoryBetween(
urls, begin_time, end_time, &cancelable_delete_consumer_,
- base::Bind(&BrowsingHistoryHandler::RemoveComplete,
- base::Unretained(this)));
+ NewCallback(this, &BrowsingHistoryHandler::RemoveComplete));
}
void BrowsingHistoryHandler::HandleClearBrowsingData(const ListValue* args) {