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

Unified Diff: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc

Issue 2156503002: [NaCl SDK] Expose Google Drive to nacl_io. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
Index: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc
index bb3a8f5ac3524d3370ddc2f6f73b2b4aff2b9f08..40fde9dc47ccc3322c9453a7cbf9070caa5b544b 100644
--- a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs_node.cc
@@ -16,6 +16,7 @@
#include "nacl_io/filesystem.h"
#include "nacl_io/getdents_helper.h"
+#include "nacl_io/hash.h"
#include "nacl_io/html5fs/html5_fs.h"
#include "nacl_io/kernel_handle.h"
#include "nacl_io/osdirent.h"
@@ -129,8 +130,8 @@ Error Html5FsNode::GetDents(size_t offs,
// The INO is based on the running hash of fully qualified path, so
// a childs INO must be the parent directories hash, plus '/', plus
// the filename.
- ino_t child_ino = Html5Fs::HashPathSegment(stat_.st_ino, file_name,
- file_name_length);
+ ino_t child_ino = HashPathSegment(stat_.st_ino, file_name,
+ file_name_length);
helper.AddDirent(child_ino, file_name, file_name_length);
}

Powered by Google App Engine
This is Rietveld 408576698