| Index: chrome/browser/extensions/api/history/history_api.cc
|
| diff --git a/chrome/browser/extensions/api/history/history_api.cc b/chrome/browser/extensions/api/history/history_api.cc
|
| index a454ce2dbba8b816c157eb3c43a2ee60bc9df981..bf0608865f676d5df3dc43837696378e3722452e 100644
|
| --- a/chrome/browser/extensions/api/history/history_api.cc
|
| +++ b/chrome/browser/extensions/api/history/history_api.cc
|
| @@ -301,20 +301,22 @@
|
| GetProfile(), Profile::EXPLICIT_ACCESS);
|
| hs->QueryURL(url,
|
| true, // Retrieve full history of a URL.
|
| + &cancelable_consumer_,
|
| base::Bind(&HistoryGetVisitsFunction::QueryComplete,
|
| - base::Unretained(this)),
|
| - &task_tracker_);
|
| + base::Unretained(this)));
|
| +
|
| return true;
|
| }
|
|
|
| void HistoryGetVisitsFunction::QueryComplete(
|
| + HistoryService::Handle request_service,
|
| bool success,
|
| - const history::URLRow& url_row,
|
| - const history::VisitVector& visits) {
|
| + const history::URLRow* url_row,
|
| + history::VisitVector* visits) {
|
| VisitItemList visit_item_vec;
|
| - if (success && !visits.empty()) {
|
| - for (history::VisitVector::const_iterator iterator = visits.begin();
|
| - iterator != visits.end();
|
| + if (visits && !visits->empty()) {
|
| + for (history::VisitVector::iterator iterator = visits->begin();
|
| + iterator != visits->end();
|
| ++iterator) {
|
| visit_item_vec.push_back(make_linked_ptr(
|
| GetVisitItem(*iterator).release()));
|
|
|