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

Unified Diff: components/nacl/renderer/plugin/temporary_file.cc

Issue 1608313002: PNaCl cleanup: Simplify error checking when opening temp files (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review: remove arg & move check Created 4 years, 11 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/renderer/plugin/temporary_file.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ad79862e63608b8de8e10a8c82cf43dedc7b8c49..a80e2b58f3454a378649caefc2f2a068158e5a48 100644
--- a/components/nacl/renderer/plugin/temporary_file.cc
+++ b/components/nacl/renderer/plugin/temporary_file.cc
@@ -21,12 +21,6 @@ TempFile::TempFile(Plugin* plugin, PP_FileHandle handle)
TempFile::~TempFile() { }
-int32_t TempFile::CheckValidity() {
- if (!file_handle_.IsValid())
- return PP_ERROR_FAILED;
- return PP_OK;
-}
-
bool TempFile::Reset() {
// file_handle_, read_wrapper_ and write_wrapper_ are all backed by the
// same file handle/descriptor, so resetting the seek position of one
« no previous file with comments | « components/nacl/renderer/plugin/temporary_file.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698