Index: chrome/common/zip.cc |
=================================================================== |
--- chrome/common/zip.cc (revision 107051) |
+++ chrome/common/zip.cc (working copy) |
@@ -173,14 +173,14 @@ |
unzFile zip_file = unzOpen2(src_file_str.c_str(), &zip_funcs); |
#endif |
if (!zip_file) { |
- LOG(WARNING) << "couldn't create file " << src_file_str; |
+ DLOG(WARNING) << "couldn't create file " << src_file_str; |
return false; |
} |
unz_global_info zip_info; |
int err; |
err = unzGetGlobalInfo(zip_file, &zip_info); |
if (err != UNZ_OK) { |
- LOG(WARNING) << "couldn't open zip " << src_file_str; |
+ DLOG(WARNING) << "couldn't open zip " << src_file_str; |
return false; |
} |
bool ret = true; |
@@ -193,7 +193,7 @@ |
if (i + 1 < zip_info.number_entry) { |
err = unzGoToNextFile(zip_file); |
if (err != UNZ_OK) { |
- LOG(WARNING) << "error %d in unzGoToNextFile"; |
+ DLOG(WARNING) << "error %d in unzGoToNextFile"; |
ret = false; |
break; |
} |
@@ -207,8 +207,8 @@ |
net::FileStream stream; |
int flags = base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ; |
if (stream.Open(src_dir, flags) != 0) { |
- LOG(ERROR) << "Could not open stream for path " |
- << src_dir.value(); |
+ DLOG(ERROR) << "Could not open stream for path " |
+ << src_dir.value(); |
return false; |
} |
@@ -218,8 +218,8 @@ |
num_bytes = stream.Read(buf, kZipBufSize, net::CompletionCallback()); |
if (num_bytes > 0) { |
if (ZIP_OK != zipWriteInFileInZip(zip_file, buf, num_bytes)) { |
- LOG(ERROR) << "Could not write data to zip for path " |
- << src_dir.value(); |
+ DLOG(ERROR) << "Could not write data to zip for path " |
+ << src_dir.value(); |
return false; |
} |
} |
@@ -247,7 +247,7 @@ |
NULL, NULL, 0u, NULL, 0u, NULL, // file info, extrafield local, length, |
// extrafield global, length, comment |
Z_DEFLATED, Z_DEFAULT_COMPRESSION)) { |
- LOG(ERROR) << "Could not open zip file entry " << str_path; |
+ DLOG(ERROR) << "Could not open zip file entry " << str_path; |
return false; |
} |
@@ -257,7 +257,7 @@ |
} |
if (ZIP_OK != zipCloseFileInZip(zip_file)) { |
- LOG(ERROR) << "Could not close zip file entry " << str_path; |
+ DLOG(ERROR) << "Could not close zip file entry " << str_path; |
return false; |
} |
@@ -286,7 +286,7 @@ |
#endif |
if (!zip_file) { |
- LOG(WARNING) << "couldn't create file " << dest_file_str; |
+ DLOG(WARNING) << "couldn't create file " << dest_file_str; |
return false; |
} |
@@ -309,7 +309,7 @@ |
} |
if (ZIP_OK != zipClose(zip_file, NULL)) { // global comment |
- LOG(ERROR) << "Error closing zip file " << dest_file_str; |
+ DLOG(ERROR) << "Error closing zip file " << dest_file_str; |
return false; |
} |