| Index: chrome/browser/safe_browsing/malware_details_history.cc
|
| diff --git a/chrome/browser/safe_browsing/malware_details_history.cc b/chrome/browser/safe_browsing/malware_details_history.cc
|
| index 6c0910f31107a656f79e19e8b6d61898d4efe879..d628a61d785ae89711091c29b9c4a58df56051af 100644
|
| --- a/chrome/browser/safe_browsing/malware_details_history.cc
|
| +++ b/chrome/browser/safe_browsing/malware_details_history.cc
|
| @@ -97,23 +97,19 @@ void MalwareDetailsRedirectsCollector::GetRedirects(const GURL& url) {
|
|
|
| history->QueryRedirectsTo(
|
| url,
|
| - &request_consumer_,
|
| base::Bind(&MalwareDetailsRedirectsCollector::OnGotQueryRedirectsTo,
|
| - base::Unretained(this)));
|
| + base::Unretained(this),
|
| + url),
|
| + &request_tracker_);
|
| }
|
|
|
| void MalwareDetailsRedirectsCollector::OnGotQueryRedirectsTo(
|
| - HistoryService::Handle handle,
|
| - GURL url,
|
| - bool success,
|
| - history::RedirectList* redirect_list) {
|
| -
|
| - if (success && redirect_list->size() > 0) {
|
| + const GURL& url,
|
| + const history::RedirectList* redirect_list) {
|
| + if (!redirect_list->empty()) {
|
| std::vector<GURL> urllist;
|
| urllist.push_back(url);
|
| - for (size_t i = 0; i < redirect_list->size(); i++) {
|
| - urllist.push_back(redirect_list->at(i));
|
| - }
|
| + urllist.insert(urllist.end(), redirect_list->begin(), redirect_list->end());
|
| redirects_urls_.push_back(urllist);
|
| }
|
|
|
|
|