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

Unified Diff: runtime/bin/file_support.cc

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month 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 | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_system_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_support.cc
diff --git a/runtime/bin/file_support.cc b/runtime/bin/file_support.cc
index 0ad5edcce25ede6116e30df73f7389cd7dda2c05..41de7026057334173353297c3657dc96aa0186d5 100644
--- a/runtime/bin/file_support.cc
+++ b/runtime/bin/file_support.cc
@@ -50,7 +50,7 @@ bool File::ReadFully(void* buffer, int64_t num_bytes) {
if (bytes_read <= 0) {
return false;
}
- remaining -= bytes_read; // Reduce the number of remaining bytes.
+ remaining -= bytes_read; // Reduce the number of remaining bytes.
current_buffer += bytes_read; // Move the buffer forward.
}
return true;
@@ -65,7 +65,7 @@ bool File::WriteFully(const void* buffer, int64_t num_bytes) {
if (bytes_written < 0) {
return false;
}
- remaining -= bytes_written; // Reduce the number of remaining bytes.
+ remaining -= bytes_written; // Reduce the number of remaining bytes.
current_buffer += bytes_written; // Move the buffer forward.
}
if (capture_stdout || capture_stderr) {
@@ -85,10 +85,8 @@ bool File::WriteFully(const void* buffer, int64_t num_bytes) {
File::FileOpenMode File::DartModeToFileMode(DartFileOpenMode mode) {
- ASSERT((mode == File::kDartRead) ||
- (mode == File::kDartWrite) ||
- (mode == File::kDartAppend) ||
- (mode == File::kDartWriteOnly) ||
+ ASSERT((mode == File::kDartRead) || (mode == File::kDartWrite) ||
+ (mode == File::kDartAppend) || (mode == File::kDartWriteOnly) ||
(mode == File::kDartWriteOnlyAppend));
if (mode == File::kDartWrite) {
return File::kWriteTruncate;
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_system_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698