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

Unified Diff: base/file_util_win.cc

Issue 8368009: Replace most LOG statements with DLOG statements in base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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 | « base/file_util_posix.cc ('k') | base/files/file_path_watcher_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_win.cc
===================================================================
--- base/file_util_win.cc (revision 106858)
+++ base/file_util_win.cc (working copy)
@@ -44,7 +44,7 @@
const int kDriveMappingSize = 1024;
wchar_t drive_mapping[kDriveMappingSize] = {'\0'};
if (!::GetLogicalDriveStrings(kDriveMappingSize - 1, drive_mapping)) {
- LOG(ERROR) << "Failed to get drive mapping.";
+ DLOG(ERROR) << "Failed to get drive mapping.";
return false;
}
@@ -603,13 +603,13 @@
wchar_t temp_name[MAX_PATH + 1];
if (!GetTempFileName(dir.value().c_str(), L"", 0, temp_name)) {
- PLOG(WARNING) << "Failed to get temporary file name in " << dir.value();
+ DPLOG(WARNING) << "Failed to get temporary file name in " << dir.value();
return false;
}
DWORD path_len = GetLongPathName(temp_name, temp_name, MAX_PATH);
if (path_len > MAX_PATH + 1 || path_len == 0) {
- PLOG(WARNING) << "Failed to get long path name for " << temp_name;
+ DPLOG(WARNING) << "Failed to get long path name for " << temp_name;
return false;
}
@@ -667,8 +667,8 @@
<< "directory already exists.";
return true;
}
- LOG(WARNING) << "CreateDirectory(" << full_path_str << "), "
- << "conflicts with existing file.";
+ DLOG(WARNING) << "CreateDirectory(" << full_path_str << "), "
+ << "conflicts with existing file.";
return false;
}
@@ -695,8 +695,8 @@
// race to create the same directory.
return true;
} else {
- LOG(WARNING) << "Failed to create directory " << full_path_str
- << ", last error is " << error_code << ".";
+ DLOG(WARNING) << "Failed to create directory " << full_path_str
+ << ", last error is " << error_code << ".";
return false;
}
} else {
@@ -773,8 +773,8 @@
0,
NULL));
if (!file) {
- LOG(WARNING) << "CreateFile failed for path " << filename.value()
- << " error code=" << GetLastError();
+ DLOG(WARNING) << "CreateFile failed for path " << filename.value()
+ << " error code=" << GetLastError();
return -1;
}
@@ -785,12 +785,12 @@
if (!result) {
// WriteFile failed.
- LOG(WARNING) << "writing file " << filename.value()
- << " failed, error code=" << GetLastError();
+ DLOG(WARNING) << "writing file " << filename.value()
+ << " failed, error code=" << GetLastError();
} else {
// Didn't write all the bytes.
- LOG(WARNING) << "wrote" << written << " bytes to " <<
- filename.value() << " expected " << size;
+ DLOG(WARNING) << "wrote" << written << " bytes to "
+ << filename.value() << " expected " << size;
}
return -1;
}
@@ -967,7 +967,7 @@
NULL, NULL);
if (file_ == base::kInvalidPlatformFileValue) {
- LOG(ERROR) << "Couldn't open " << file_name.value();
+ DLOG(ERROR) << "Couldn't open " << file_name.value();
return false;
}
« no previous file with comments | « base/file_util_posix.cc ('k') | base/files/file_path_watcher_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698