| Index: net/base/file_stream_context.cc
|
| diff --git a/net/base/file_stream_context.cc b/net/base/file_stream_context.cc
|
| index 487144e77bad3509a939d6c0178a74874fdc2b0e..0e662be71aac961e5399cd08b8d5346dc2194496 100644
|
| --- a/net/base/file_stream_context.cc
|
| +++ b/net/base/file_stream_context.cc
|
| @@ -25,14 +25,11 @@ void CallInt64ToInt(const CompletionCallback& callback, int64 result) {
|
|
|
| } // namespace
|
|
|
| -FileStream::Context::IOResult::IOResult()
|
| - : result(OK),
|
| - os_error(0) {
|
| +FileStream::Context::IOResult::IOResult() : result(OK), os_error(0) {
|
| }
|
|
|
| FileStream::Context::IOResult::IOResult(int64 result, int os_error)
|
| - : result(result),
|
| - os_error(os_error) {
|
| + : result(result), os_error(os_error) {
|
| }
|
|
|
| // static
|
| @@ -48,13 +45,11 @@ FileStream::Context::OpenResult::OpenResult() {
|
|
|
| FileStream::Context::OpenResult::OpenResult(base::File file,
|
| IOResult error_code)
|
| - : file(file.Pass()),
|
| - error_code(error_code) {
|
| + : file(file.Pass()), error_code(error_code) {
|
| }
|
|
|
| FileStream::Context::OpenResult::OpenResult(RValue other)
|
| - : file(other.object->file.Pass()),
|
| - error_code(other.object->error_code) {
|
| + : file(other.object->file.Pass()), error_code(other.object->error_code) {
|
| }
|
|
|
| FileStream::Context::OpenResult& FileStream::Context::OpenResult::operator=(
|
| @@ -120,9 +115,7 @@ void FileStream::Context::SeekAsync(Whence whence,
|
| FROM_HERE,
|
| base::Bind(
|
| &Context::SeekFileImpl, base::Unretained(this), whence, offset),
|
| - base::Bind(&Context::OnAsyncCompleted,
|
| - base::Unretained(this),
|
| - callback));
|
| + base::Bind(&Context::OnAsyncCompleted, base::Unretained(this), callback));
|
| DCHECK(posted);
|
|
|
| async_in_progress_ = true;
|
| @@ -144,7 +137,8 @@ void FileStream::Context::FlushAsync(const CompletionCallback& callback) {
|
| }
|
|
|
| FileStream::Context::OpenResult FileStream::Context::OpenFileImpl(
|
| - const base::FilePath& path, int open_flags) {
|
| + const base::FilePath& path,
|
| + int open_flags) {
|
| #if defined(OS_POSIX)
|
| // Always use blocking IO.
|
| open_flags &= ~base::File::FLAG_ASYNC;
|
|
|