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

Unified Diff: components/nacl/browser/pnacl_host.cc

Issue 2514323004: Convert NaCl renderer-browser messages to mojo. (Closed)
Patch Set: Created 3 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 | « components/nacl/browser/pnacl_host.h ('k') | components/nacl/browser/pnacl_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/pnacl_host.cc
diff --git a/components/nacl/browser/pnacl_host.cc b/components/nacl/browser/pnacl_host.cc
index 605d7d71d049fe9dd14c96765da8cbff55027f25..ecf82ef63da8b5a86e9c8a7524842fb4fb5b7a02 100644
--- a/components/nacl/browser/pnacl_host.cc
+++ b/components/nacl/browser/pnacl_host.cc
@@ -395,7 +395,7 @@ void PnaclHost::ReturnMiss(const PendingTranslationMap::iterator& entry) {
// Return the fd
PendingTranslation* pt = &entry->second;
NexeFdCallback cb(pt->callback);
- cb.Run(*pt->nexe_fd, false);
+ cb.Run(pt->nexe_fd->Duplicate(), false);
if (!pt->nexe_fd->IsValid()) {
// Bad FD is unrecoverable, so clear out the entry.
pending_translations_.erase(entry);
@@ -564,7 +564,7 @@ void PnaclHost::OnBufferCopiedToTempFile(const TranslationID& id,
base::Unretained(this), entry->first));
return;
}
- entry->second.callback.Run(*file.get(), true);
+ entry->second.callback.Run(file->Duplicate(), true);
BrowserThread::PostBlockingPoolTask(
FROM_HERE,
base::Bind(CloseScopedFile, Passed(&file)));
« no previous file with comments | « components/nacl/browser/pnacl_host.h ('k') | components/nacl/browser/pnacl_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698