| Index: chrome/browser/download/download_item.cc
|
| diff --git a/chrome/browser/download/download_item.cc b/chrome/browser/download/download_item.cc
|
| index 54165a9fcd78251bed8fcac151a89cb5a6b6a99f..7d3df5a5fe0ce817df505c7571c2d3ce2c12b05a 100644
|
| --- a/chrome/browser/download/download_item.cc
|
| +++ b/chrome/browser/download/download_item.cc
|
| @@ -135,8 +135,6 @@ DownloadItem::DownloadItem(DownloadManager* download_manager,
|
| danger_type_(NOT_DANGEROUS),
|
| auto_opened_(false),
|
| target_name_(info.original_name),
|
| - render_process_id_(-1),
|
| - request_id_(-1),
|
| save_as_(false),
|
| is_otr_(false),
|
| is_extension_install_(info.is_extension_install),
|
| @@ -178,8 +176,7 @@ DownloadItem::DownloadItem(DownloadManager* download_manager,
|
| info.is_dangerous_url)),
|
| auto_opened_(false),
|
| target_name_(info.original_name),
|
| - render_process_id_(info.child_id),
|
| - request_id_(info.request_id),
|
| + process_handle_(info.process_handle),
|
| save_as_(info.prompt_user_for_save_location),
|
| is_otr_(is_otr),
|
| is_extension_install_(info.is_extension_install),
|
| @@ -215,8 +212,6 @@ DownloadItem::DownloadItem(DownloadManager* download_manager,
|
| safety_state_(SAFE),
|
| danger_type_(NOT_DANGEROUS),
|
| auto_opened_(false),
|
| - render_process_id_(-1),
|
| - request_id_(-1),
|
| save_as_(false),
|
| is_otr_(is_otr),
|
| is_extension_install_(false),
|
| @@ -655,6 +650,20 @@ std::string DownloadItem::DebugString(bool verbose) const {
|
| id_,
|
| DebugDownloadStateString(state()));
|
|
|
| + // Construct a string of the URL chain.
|
| + std::string url_list("<none>");
|
| + if (!url_chain_.empty()) {
|
| + std::vector<GURL>::const_iterator iter = url_chain_.begin();
|
| + std::vector<GURL>::const_iterator last = url_chain_.end();
|
| + url_list = (*iter).spec();
|
| + ++iter;
|
| + for ( ; verbose && (iter != last); ++iter) {
|
| + url_list += " -> ";
|
| + const GURL& next_url = *iter;
|
| + url_list += next_url.spec();
|
| + }
|
| + }
|
| +
|
| if (verbose) {
|
| description += base::StringPrintf(
|
| " db_handle = %" PRId64
|
| @@ -663,7 +672,7 @@ std::string DownloadItem::DebugString(bool verbose) const {
|
| " is_extension_install = " "%c"
|
| " is_otr = " "%c"
|
| " safety_state = " "%s"
|
| - " url = " "\"%s\""
|
| + " url_chain = " "\"%s\""
|
| " target_name_ = \"%" PRFilePath "\""
|
| " full_path = \"%" PRFilePath "\"",
|
| db_handle(),
|
| @@ -672,11 +681,11 @@ std::string DownloadItem::DebugString(bool verbose) const {
|
| is_extension_install() ? 'T' : 'F',
|
| is_otr() ? 'T' : 'F',
|
| DebugSafetyStateString(safety_state()),
|
| - url().spec().c_str(),
|
| + url_list.c_str(),
|
| target_name_.value().c_str(),
|
| full_path().value().c_str());
|
| } else {
|
| - description += base::StringPrintf(" url = \"%s\"", url().spec().c_str());
|
| + description += base::StringPrintf(" url = \"%s\"", url_list.c_str());
|
| }
|
|
|
| description += " }";
|
|
|