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

Unified Diff: content/browser/download/download_item_impl.cc

Issue 9426029: Test file errors in downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk. Created 8 years, 9 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
Index: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index d1f2c579d0550a94d0575cdff1028e9c1c4eee3b..d8a808b8db6d6d17cc75a6f987b9ad7f3300b33a 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -571,6 +571,8 @@ void DownloadItemImpl::TransitionTo(DownloadState new_state) {
break;
}
+ VLOG(20) << " " << __FUNCTION__ << "()" << " this = " << DebugString(true);
+
UpdateObservers();
bool is_done = (state_ != IN_PROGRESS);
@@ -989,19 +991,21 @@ std::string DownloadItemImpl::DebugString(bool verbose) const {
if (verbose) {
description += base::StringPrintf(
" db_handle = %" PRId64
- " total_bytes = %" PRId64
- " received_bytes = %" PRId64
- " is_paused = %c"
- " is_otr = %c"
- " safety_state = %s"
+ " total = %" PRId64
+ " received = %" PRId64
+ " reason = %s"
+ " paused = %c"
+ " otr = %c"
+ " safety = %s"
" last_modified = '%s'"
" etag = '%s'"
" url_chain = \n\t\"%s\"\n\t"
- " target_name = \"%" PRFilePath "\""
+ " target = \"%" PRFilePath "\""
" full_path = \"%" PRFilePath "\"",
GetDbHandle(),
GetTotalBytes(),
GetReceivedBytes(),
+ InterruptReasonDebugString(last_reason_).c_str(),
IsPaused() ? 'T' : 'F',
IsOtr() ? 'T' : 'F',
DebugSafetyStateString(GetSafetyState()),
« no previous file with comments | « content/browser/download/download_file_manager.h ('k') | content/browser/download/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698