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

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

Issue 303223007: [NaCl SDK] nacl_io: Run clang-format over nacl_io sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 1f0e84301675cd4beab64745fb57a13f04668c58..92877bb8385582314b4e5dc79315f396e78d8459 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
@@ -227,7 +227,9 @@ Error Html5FsNode::Write(const HandleAttr& attr,
return 0;
}
-int Html5FsNode::GetType() { return fileio_resource_ ? S_IFREG : S_IFDIR; }
+int Html5FsNode::GetType() {
+ return fileio_resource_ ? S_IFREG : S_IFDIR;
+}
Error Html5FsNode::GetSize(off_t* out_size) {
*out_size = 0;
@@ -247,14 +249,19 @@ Error Html5FsNode::GetSize(off_t* out_size) {
return 0;
}
-bool Html5FsNode::IsaDir() { return !fileio_resource_; }
+bool Html5FsNode::IsaDir() {
+ return !fileio_resource_;
+}
-bool Html5FsNode::IsaFile() { return fileio_resource_; }
+bool Html5FsNode::IsaFile() {
+ return fileio_resource_;
+}
Html5FsNode::Html5FsNode(Filesystem* filesystem, PP_Resource fileref_resource)
: Node(filesystem),
fileref_resource_(fileref_resource),
- fileio_resource_(0) {}
+ fileio_resource_(0) {
+}
Error Html5FsNode::Init(int open_flags) {
Error error = Node::Init(open_flags);
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc ('k') | native_client_sdk/src/libraries/nacl_io/httpfs/http_fs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698