Index: chrome/browser/bookmarks/bookmark_html_writer.cc |
diff --git a/chrome/browser/bookmarks/bookmark_html_writer.cc b/chrome/browser/bookmarks/bookmark_html_writer.cc |
index 8ab2de4ce6fbaf98ae0246cef6d781173534d6d5..5a6d670578a530d8ac234de9b98f6fcf755f8333 100644 |
--- a/chrome/browser/bookmarks/bookmark_html_writer.cc |
+++ b/chrome/browser/bookmarks/bookmark_html_writer.cc |
@@ -145,7 +145,7 @@ class Writer : public base::RefCountedThreadSafe<Writer> { |
Write(kFolderChildrenEnd); |
Write(kNewline); |
// File stream close is forced so that unit test could read it. |
- file_stream_.Close(); |
+ file_stream_.CloseSync(); |
NotifyOnFinish(); |
} |
@@ -165,7 +165,7 @@ class Writer : public base::RefCountedThreadSafe<Writer> { |
// Opens the file, returning true on success. |
bool OpenFile() { |
int flags = base::PLATFORM_FILE_CREATE_ALWAYS | base::PLATFORM_FILE_WRITE; |
- return (file_stream_.Open(path_, flags) == net::OK); |
+ return (file_stream_.OpenSync(path_, flags) == net::OK); |
} |
// Increments the indent. |