| Index: net/base/file_stream_posix.cc
|
| diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc
|
| index 21abd2040b31ff5181da5e8f8f710ea136f3dcc0..ecf064eaa2a56e726d9a59edcb8dc728684d462f 100644
|
| --- a/net/base/file_stream_posix.cc
|
| +++ b/net/base/file_stream_posix.cc
|
| @@ -454,13 +454,6 @@ int FileStream::Write(
|
| }
|
| }
|
|
|
| -int FileStream::Flush() {
|
| - if (!IsOpen())
|
| - return ERR_UNEXPECTED;
|
| -
|
| - return FlushFile(file_);
|
| -}
|
| -
|
| int64 FileStream::Truncate(int64 bytes) {
|
| if (!IsOpen())
|
| return ERR_UNEXPECTED;
|
| @@ -478,4 +471,11 @@ int64 FileStream::Truncate(int64 bytes) {
|
| return result == 0 ? seek_position : MapErrorCode(errno);
|
| }
|
|
|
| +int FileStream::Flush() {
|
| + if (!IsOpen())
|
| + return ERR_UNEXPECTED;
|
| +
|
| + return FlushFile(file_);
|
| +}
|
| +
|
| } // namespace net
|
|
|