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

Unified Diff: components/nacl/loader/nacl_listener.cc

Issue 292213002: Change to using nacl_file_info.h from src/public instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: might as well use helper to check 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 | « components/nacl/loader/DEPS ('k') | components/nacl/loader/nacl_validation_query.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nacl_listener.cc
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc
index f527191c9ff9fc48a0efb1cf9cd9d54fe332c0f2..5056f0f70e986d08e2d45396fb77acd210c744e2 100644
--- a/components/nacl/loader/nacl_listener.cc
+++ b/components/nacl/loader/nacl_listener.cc
@@ -26,7 +26,7 @@
#include "ipc/ipc_sync_message_filter.h"
#include "native_client/src/public/chrome_main.h"
#include "native_client/src/public/nacl_app.h"
-#include "native_client/src/trusted/validator/nacl_file_info.h"
+#include "native_client/src/public/nacl_file_info.h"
#if defined(OS_POSIX)
#include "base/file_descriptor_posix.h"
@@ -169,7 +169,7 @@ class BrowserValidationDBProxy : public NaClValidationDB {
int32* fd, std::string* path) OVERRIDE {
*fd = -1;
*path = "";
- if (file_token->lo == 0 && file_token->hi == 0) {
+ if (!NaClFileTokenIsValid(file_token)) {
return false;
}
IPC::PlatformFileForTransit ipc_fd = IPC::InvalidPlatformFileForTransit();
« no previous file with comments | « components/nacl/loader/DEPS ('k') | components/nacl/loader/nacl_validation_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698