diff options
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index 15d2317..3ce2a74 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -117,6 +117,7 @@ PluginDownloadUrlHelper::PluginDownloadUrlHelper( // TODO(port): Some window verification for mac and linux. #endif memset(download_file_buffer_->data(), 0, kDownloadFileBufferSize); + download_file_.reset(new net::FileStream()); } PluginDownloadUrlHelper::~PluginDownloadUrlHelper() { @@ -157,9 +158,11 @@ void PluginDownloadUrlHelper::OnResponseStarted(URLRequest* request) { GURL request_url = request->url(); #if defined(OS_WIN) - download_file_path_.Append(UTF8ToWide(request_url.ExtractFileName())); + download_file_path_ = download_file_path_.Append( + UTF8ToWide(request_url.ExtractFileName())); #else - download_file_path_.Append(request_url.ExtractFileName()); + download_file_path_ = download_file_path_.Append( + request_url.ExtractFileName()); #endif download_file_->Open(download_file_path_, |