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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_object.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/kernel_object.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_object.cc b/native_client_sdk/src/libraries/nacl_io/kernel_object.cc
index 8b64ca15caa1414f319f16285a952aefa85423f0..81e57297a7317059891e6632d29ebfacb838e8ca 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_object.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_object.cc
@@ -24,7 +24,9 @@
namespace nacl_io {
-KernelObject::KernelObject() { cwd_ = "/"; }
+KernelObject::KernelObject() {
+ cwd_ = "/";
+}
KernelObject::~KernelObject() {};
@@ -183,8 +185,9 @@ Error KernelObject::AcquireHandle(int fd, ScopedKernelHandle* out_handle) {
return 0;
}
-Error KernelObject::AcquireHandleAndPath(int fd, ScopedKernelHandle* out_handle,
- std::string* out_path){
+Error KernelObject::AcquireHandleAndPath(int fd,
+ ScopedKernelHandle* out_handle,
+ std::string* out_path) {
out_handle->reset(NULL);
AUTO_LOCK(handle_lock_);
@@ -223,7 +226,8 @@ int KernelObject::AllocateFD(const ScopedKernelHandle& handle,
return id;
}
-void KernelObject::FreeAndReassignFD(int fd, const ScopedKernelHandle& handle,
+void KernelObject::FreeAndReassignFD(int fd,
+ const ScopedKernelHandle& handle,
const std::string& path) {
if (NULL == handle) {
FreeFD(fd);
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_object.h ('k') | native_client_sdk/src/libraries/nacl_io/kernel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698