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

Unified Diff: chrome/common/important_file_writer.cc

Issue 8368018: Convert chrome/common non-debug logs to debug logs. (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 | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/json_pref_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/important_file_writer.cc
===================================================================
--- chrome/common/important_file_writer.cc (revision 107051)
+++ chrome/common/important_file_writer.cc (working copy)
@@ -50,7 +50,7 @@
return;
}
- CHECK_LE(data_.length(), static_cast<size_t>(kint32max));
+ DCHECK_LE(data_.length(), static_cast<size_t>(kint32max));
int bytes_written = base::WritePlatformFile(
tmp_file, 0, data_.data(), static_cast<int>(data_.length()));
base::FlushPlatformFile(tmp_file); // Ignore return value.
@@ -88,8 +88,8 @@
void LogFailure(TempFileFailure failure_code, const std::string& message) {
UMA_HISTOGRAM_ENUMERATION("ImportantFile.TempFileFailures", failure_code,
TEMP_FILE_FAILURE_MAX);
- PLOG(WARNING) << "temp file failure: " << path_.value()
- << " : " << message;
+ DPLOG(WARNING) << "temp file failure: " << path_.value()
+ << " : " << message;
}
const FilePath path_;
@@ -163,8 +163,8 @@
if (serializer_->SerializeData(&data)) {
WriteNow(data);
} else {
- LOG(WARNING) << "failed to serialize data to be saved in "
- << path_.value();
+ DLOG(WARNING) << "failed to serialize data to be saved in "
+ << path_.value();
}
serializer_ = NULL;
}
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/json_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698