diff options
Diffstat (limited to 'chrome/browser/ui/webui/history2_ui.cc')
| -rw-r--r-- | chrome/browser/ui/webui/history2_ui.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/ui/webui/history2_ui.cc b/chrome/browser/ui/webui/history2_ui.cc index 48cb4fa..7b80a82 100644 --- a/chrome/browser/ui/webui/history2_ui.cc +++ b/chrome/browser/ui/webui/history2_ui.cc @@ -150,8 +150,7 @@ void BrowsingHistoryHandler2::HandleGetHistory(const ListValue* args) { hs->QueryHistory(search_text_, options, &cancelable_search_consumer_, - base::Bind(&BrowsingHistoryHandler2::QueryComplete, - base::Unretained(this))); + NewCallback(this, &BrowsingHistoryHandler2::QueryComplete)); } void BrowsingHistoryHandler2::HandleSearchHistory(const ListValue* args) { @@ -176,8 +175,7 @@ void BrowsingHistoryHandler2::HandleSearchHistory(const ListValue* args) { hs->QueryHistory(search_text_, options, &cancelable_search_consumer_, - base::Bind(&BrowsingHistoryHandler2::QueryComplete, - base::Unretained(this))); + NewCallback(this, &BrowsingHistoryHandler2::QueryComplete)); } void BrowsingHistoryHandler2::HandleRemoveURLsOnOneDay(const ListValue* args) { @@ -218,8 +216,7 @@ void BrowsingHistoryHandler2::HandleRemoveURLsOnOneDay(const ListValue* args) { Profile::FromWebUI(web_ui_)->GetHistoryService(Profile::EXPLICIT_ACCESS); hs->ExpireHistoryBetween( urls_to_be_deleted_, begin_time, end_time, &cancelable_delete_consumer_, - base::Bind(&BrowsingHistoryHandler2::RemoveComplete, - base::Unretained(this))); + NewCallback(this, &BrowsingHistoryHandler2::RemoveComplete)); } void BrowsingHistoryHandler2::HandleClearBrowsingData(const ListValue* args) { |
