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

Unified Diff: chrome/browser/plugin_process_host.cc

Issue 28349: Make sure the scoped_ptr is set before checking if the file is open. Fixes a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_process_host.cc
===================================================================
--- chrome/browser/plugin_process_host.cc (revision 10749)
+++ chrome/browser/plugin_process_host.cc (working copy)
@@ -117,6 +117,7 @@
// 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 @@
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_,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698