Index: net/base/file_stream_posix.cc |
diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc |
index a094eed49a10d7f57d56c39115ec8ae0e2e3919f..86f64ec8b3725bf8cc7e4c4178965624499bae44 100644 |
--- a/net/base/file_stream_posix.cc |
+++ b/net/base/file_stream_posix.cc |
@@ -341,12 +341,12 @@ FileStream::FileStream(base::PlatformFile file, int flags, net::NetLog* net_log) |
FileStream::~FileStream() { |
if (auto_closed_) |
- Close(); |
+ CloseSync(); |
bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL); |
} |
-void FileStream::Close() { |
+void FileStream::CloseSync() { |
bound_net_log_.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE, NULL); |
// Abort any existing asynchronous operations. |
@@ -361,7 +361,7 @@ void FileStream::Close() { |
} |
} |
-int FileStream::Open(const FilePath& path, int open_flags) { |
+int FileStream::OpenSync(const FilePath& path, int open_flags) { |
if (IsOpen()) { |
DLOG(FATAL) << "File is already open!"; |
return ERR_UNEXPECTED; |