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

Unified Diff: net/base/file_stream_context_win.cc

Issue 647883002: git cl format the final third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: net/base/file_stream_context_win.cc
diff --git a/net/base/file_stream_context_win.cc b/net/base/file_stream_context_win.cc
index 3b942d35edc532659f8ccdf2035c4aa990cafe70..f8bee750761c797443a85db8f53e6b0067d84b0c 100644
--- a/net/base/file_stream_context_win.cc
+++ b/net/base/file_stream_context_win.cc
@@ -65,8 +65,11 @@ int FileStream::Context::Read(IOBuffer* buf,
DCHECK(!async_in_progress_);
DWORD bytes_read;
- if (!ReadFile(file_.GetPlatformFile(), buf->data(), buf_len,
- &bytes_read, &io_context_.overlapped)) {
+ if (!ReadFile(file_.GetPlatformFile(),
+ buf->data(),
+ buf_len,
+ &bytes_read,
+ &io_context_.overlapped)) {
IOResult error = IOResult::FromOSError(GetLastError());
if (error.os_error == ERROR_IO_PENDING) {
IOCompletionIsPending(callback, buf);
@@ -86,8 +89,11 @@ int FileStream::Context::Write(IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) {
DWORD bytes_written = 0;
- if (!WriteFile(file_.GetPlatformFile(), buf->data(), buf_len,
- &bytes_written, &io_context_.overlapped)) {
+ if (!WriteFile(file_.GetPlatformFile(),
+ buf->data(),
+ buf_len,
+ &bytes_written,
+ &io_context_.overlapped)) {
IOResult error = IOResult::FromOSError(GetLastError());
if (error.os_error == ERROR_IO_PENDING) {
IOCompletionIsPending(callback, buf);

Powered by Google App Engine
This is Rietveld 408576698