Index: components/nacl/renderer/plugin/temporary_file.cc |
diff --git a/components/nacl/renderer/plugin/temporary_file.cc b/components/nacl/renderer/plugin/temporary_file.cc |
index 6a79e771129cd046cd8c3e528e8b020380074b48..d6ce5b94211158ce31b100d8d74117d31d55064a 100644 |
--- a/components/nacl/renderer/plugin/temporary_file.cc |
+++ b/components/nacl/renderer/plugin/temporary_file.cc |
@@ -61,7 +61,13 @@ bool TempFile::Reset() { |
} |
PP_FileHandle TempFile::TakeFileHandle() { |
+ DCHECK(file_handle_.IsValid()); |
return file_handle_.TakePlatformFile(); |
} |
+PP_FileHandle TempFile::GetFileHandle() { |
+ DCHECK(file_handle_.IsValid()); |
+ return file_handle_.GetPlatformFile(); |
+} |
+ |
} // namespace plugin |