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

Unified Diff: ppapi/native_client/src/trusted/plugin/file_downloader.cc

Issue 291973002: Pepper: DescWrapper cleanup in PnaclResources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 6 years, 7 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 | ppapi/native_client/src/trusted/plugin/plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/file_downloader.cc
diff --git a/ppapi/native_client/src/trusted/plugin/file_downloader.cc b/ppapi/native_client/src/trusted/plugin/file_downloader.cc
index 1118e1dba367b29e95721afad41085fbc3997581..cc25d28a1cd4fc940d974782ba7347c4ae8c3769 100644
--- a/ppapi/native_client/src/trusted/plugin/file_downloader.cc
+++ b/ppapi/native_client/src/trusted/plugin/file_downloader.cc
@@ -187,7 +187,7 @@ void FileDownloader::OpenFast(const nacl::string& url,
mode_ = DOWNLOAD_NONE;
if (file_handle != PP_kInvalidFileHandle) {
NaClFileInfo tmp_info = NoFileInfo();
- tmp_info.desc = ConvertFileDescriptor(file_handle);
+ tmp_info.desc = ConvertFileDescriptor(file_handle, true);
tmp_info.file_token.lo = file_token_lo;
tmp_info.file_token.hi = file_token_hi;
file_info_.TakeOwnership(&tmp_info);
@@ -407,7 +407,7 @@ void FileDownloader::GotFileHandleNotify(int32_t pp_error,
pp_error));
if (pp_error == PP_OK) {
NaClFileInfo tmp_info = NoFileInfo();
- tmp_info.desc = ConvertFileDescriptor(handle);
+ tmp_info.desc = ConvertFileDescriptor(handle, false);
file_info_.TakeOwnership(&tmp_info);
}
« no previous file with comments | « no previous file | ppapi/native_client/src/trusted/plugin/plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698