Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: chrome/common/safe_browsing/zip_analyzer.cc

Issue 694323004: [chrome/common] Convert VLOGs to DVLOGs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..105fb2bf34d9eb5dfbad2f9f88db9c7fe3475f03 100644
--- a/chrome/common/safe_browsing/zip_analyzer.cc
+++ b/chrome/common/safe_browsing/zip_analyzer.cc
@@ -17,18 +17,18 @@ void AnalyzeZipFile(base::File zip_file, Results* results) {
// no way to know if it did that or not. Assume it did (that's the common
// case).
if (!reader.OpenFromPlatformFile(zip_file.TakePlatformFile())) {
- VLOG(1) << "Failed to open zip file";
+ DVLOG(1) << "Failed to open zip file";
return;
}
bool advanced = true;
for (; reader.HasMore(); advanced = reader.AdvanceToNextEntry()) {
if (!advanced) {
- VLOG(1) << "Could not advance to next entry, aborting zip scan.";
+ DVLOG(1) << "Could not advance to next entry, aborting zip scan.";
return;
}
if (!reader.OpenCurrentEntryInZip()) {
- VLOG(1) << "Failed to open current entry in zip file";
+ DVLOG(1) << "Failed to open current entry in zip file";
continue;
}
const base::FilePath& file = reader.current_entry_info()->file_path();
@@ -38,12 +38,12 @@ void AnalyzeZipFile(base::File zip_file, Results* results) {
if (download_protection_util::IsArchiveFile(file)) {
results->has_archive = true;
} else {
- VLOG(2) << "Downloaded a zipped executable: " << file.value();
+ DVLOG(2) << "Downloaded a zipped executable: " << file.value();
results->has_executable = true;
break;
}
} else {
- VLOG(3) << "Ignoring non-binary file: " << file.value();
+ DVLOG(3) << "Ignoring non-binary file: " << file.value();
}
}
results->success = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698