| Index: chrome/common/safe_browsing/zip_analyzer.cc
|
| diff --git a/chrome/common/safe_browsing/zip_analyzer.cc b/chrome/common/safe_browsing/zip_analyzer.cc
|
| index 41894b82e1aad8be689ae82a60fd7b343998518b..44794d3b3673f902cd0886602fea7721ffee0f46 100644
|
| --- a/chrome/common/safe_browsing/zip_analyzer.cc
|
| +++ b/chrome/common/safe_browsing/zip_analyzer.cc
|
| @@ -13,10 +13,7 @@ namespace zip_analyzer {
|
|
|
| void AnalyzeZipFile(base::File zip_file, Results* results) {
|
| zip::ZipReader reader;
|
| - // OpenFromPlatformFile may close the handle even when it fails, but there is
|
| - // no way to know if it did that or not. Assume it did (that's the common
|
| - // case).
|
| - if (!reader.OpenFromPlatformFile(zip_file.TakePlatformFile())) {
|
| + if (!reader.OpenFromPlatformFile(zip_file.GetPlatformFile())) {
|
| VLOG(1) << "Failed to open zip file";
|
| return;
|
| }
|
|
|