| Index: chrome/browser/safe_browsing/download_protection_service_unittest.cc
|
| diff --git a/chrome/browser/safe_browsing/download_protection_service_unittest.cc b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
|
| index 6b4a41cc40dfd400ee41ef183ce2dd10ec288b28..8e274e222eebe76e1fda13ea66e02cbd5daf2a8d 100644
|
| --- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
|
| +++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
|
| @@ -128,10 +128,13 @@ void OnSafeBrowsingResult(
|
|
|
| ACTION_P(CheckDownloadUrlDone, threat_type) {
|
| SafeBrowsingDatabaseManager::SafeBrowsingCheck* check =
|
| - new SafeBrowsingDatabaseManager::SafeBrowsingCheck();
|
| + new SafeBrowsingDatabaseManager::SafeBrowsingCheck(
|
| + safe_browsing_util::BINURL);
|
| check->urls = arg0;
|
| - check->is_download = true;
|
| - check->threat_type = threat_type;
|
| + for (std::vector<GURL>::iterator it = check->urls.begin();
|
| + it != check->urls.end(); ++it) {
|
| + check->url_threats[*it] = threat_type;
|
| + }
|
| check->client = arg1;
|
| BrowserThread::PostTask(BrowserThread::IO,
|
| FROM_HERE,
|
|
|