| Index: chrome/browser/safe_browsing/download_protection_service.cc
|
| diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
|
| index d9aed52be1d6cc2dfc79960c601f9527f6e3f64d..fd5748036374a4a95f9a5d68962fd90df1172ffd 100644
|
| --- a/chrome/browser/safe_browsing/download_protection_service.cc
|
| +++ b/chrome/browser/safe_browsing/download_protection_service.cc
|
| @@ -358,7 +358,8 @@ class DownloadProtectionService::CheckClientDownloadRequest
|
| return;
|
| }
|
| const GURL& final_url = info_.download_url_chain.back();
|
| - if (!final_url.is_valid() || final_url.is_empty()) {
|
| + if (!final_url.is_valid() || final_url.is_empty() ||
|
| + !final_url.IsStandard() || final_url.SchemeIsFile()) {
|
| RecordImprovedProtectionStats(REASON_INVALID_URL);
|
| PostFinishTask(SAFE);
|
| return;
|
|
|