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

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

Issue 9351024: Clean up unused members and constructors from DownloadCreateInfo and DownloadSaveInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " 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_create_info.cc
diff --git a/content/browser/download/download_create_info.cc b/content/browser/download/download_create_info.cc
index 08999f7d64bf9688bcd7a0bf084bd1a2f156efff..87897870a95c36bc49d0f69b48c03a579878135f 100644
--- a/content/browser/download/download_create_info.cc
+++ b/content/browser/download/download_create_info.cc
@@ -11,18 +11,13 @@
using content::DownloadId;
-DownloadCreateInfo::DownloadCreateInfo(
- const FilePath& path,
- const GURL& url,
- const base::Time& start_time,
- int64 received_bytes,
- int64 total_bytes,
- int32 state,
- bool has_user_gesture,
- content::PageTransition transition_type)
- : path(path),
- url_chain(1, url),
- start_time(start_time),
+DownloadCreateInfo::DownloadCreateInfo(const base::Time& start_time,
+ int64 received_bytes,
+ int64 total_bytes,
+ int32 state,
+ bool has_user_gesture,
+ content::PageTransition transition_type)
+ : start_time(start_time),
received_bytes(received_bytes),
total_bytes(total_bytes),
state(state),
@@ -51,14 +46,14 @@ std::string DownloadCreateInfo::DebugString() const {
return base::StringPrintf("{"
" download_id = %s"
" url = \"%s\""
- " path = \"%" PRFilePath "\""
+ " save_info.file_path = \"%" PRFilePath "\""
" received_bytes = %" PRId64
" total_bytes = %" PRId64
" prompt_user_for_save_location = %c"
" }",
download_id.DebugString().c_str(),
url().spec().c_str(),
- path.value().c_str(),
+ save_info.file_path.value().c_str(),
received_bytes,
total_bytes,
prompt_user_for_save_location ? 'T' : 'F');

Powered by Google App Engine
This is Rietveld 408576698