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

Unified Diff: net/base/file_stream_context_win.cc

Issue 266243004: Clang format slam. 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: 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 2477535f57fc80115934380ccc663904723f7674..5baccdb7ebc32827ef0c429beb50e5f4ad238e2d 100644
--- a/net/base/file_stream_context_win.cc
+++ b/net/base/file_stream_context_win.cc
@@ -70,8 +70,11 @@ int FileStream::Context::ReadAsync(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);
@@ -91,8 +94,11 @@ int FileStream::Context::WriteAsync(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