Shift passage of FileStream in downloads system to be by scoped_ptr<>.
http://codereview.chromium.org/10912173/ constructs the DownloadFile, and
thus the BaseFile, on the UI thread and then passes it to the FILE thread.
DownloadFile / BaseFile may be constructed with a FileStream to which to
write the download. The FileStream cannot be passed by linked_ptr<> in this
case, as that is not thread safe.
BUG=123998
[email protected]
Review URL: https://chromiumcodereview.appspot.com/11028131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162411 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index d0984ad..8ab5872c 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -183,8 +183,8 @@
TARGET_DISPOSITION_PROMPT : TARGET_DISPOSITION_OVERWRITE),
url_chain_(info.url_chain),
referrer_url_(info.referrer_url),
- suggested_filename_(UTF16ToUTF8(info.save_info.suggested_name)),
- forced_file_path_(info.save_info.file_path),
+ suggested_filename_(UTF16ToUTF8(info.save_info->suggested_name)),
+ forced_file_path_(info.save_info->file_path),
transition_type_(info.transition_type),
has_user_gesture_(info.has_user_gesture),
content_disposition_(info.content_disposition),
@@ -208,7 +208,7 @@
safety_state_(SAFE),
auto_opened_(false),
is_persisted_(false),
- is_temporary_(!info.save_info.file_path.empty()),
+ is_temporary_(!info.save_info->file_path.empty()),
all_data_saved_(false),
opened_(false),
open_enabled_(true),