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

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: Split off 2 CLs, to simplify this one. Created 8 years, 10 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 dd08306e35e0f91cb76e444afd46fb453847da30..fb1597133e7d05f3a13c96ed6335984c9b655e41 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -570,6 +570,8 @@ void DownloadItemImpl::TransitionTo(DownloadState new_state) {
break;
}
+ VLOG(20) << " " << __FUNCTION__ << "()" << " this = " << DebugString(true);
+
UpdateObservers();
bool is_done = (state_ != IN_PROGRESS);
@@ -996,19 +998,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()),

Powered by Google App Engine
This is Rietveld 408576698