summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 05:59:40 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 05:59:40 +0000
commitfe57eb240ec0b058a4e2ccc5fbfececa8952b4e6 (patch)
tree5fcc133999cc5689b999cfa3e52aae4af21aa74e /chrome/browser/bookmarks
parentcb7eb8f732a5df2bafc0a4f9512b16bb1f66fc8e (diff)
downloadchromium_src-fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6.zip
chromium_src-fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6.tar.gz
chromium_src-fe57eb240ec0b058a4e2ccc5fbfececa8952b4e6.tar.bz2
net: Rename FileStream::Open/Close with OpenSync/CloseSync.
This is in preparation for implementing async versions of Open() and Close(). The existing clients are changed to use OpenSync/CloseSync. No logic is changed. The original patch was reverted as it broke linux_chromeos build. This patch includes fixes for the build. TEST=git try -r 121075 --bot=win,linux,mac,linux_chromeos,linux_chromeos_gtk,win_aura to confirm everything is built as before. BUG=72001 Review URL: https://chromiumcodereview.appspot.com/9373001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r--chrome/browser/bookmarks/bookmark_html_writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/bookmarks/bookmark_html_writer.cc b/chrome/browser/bookmarks/bookmark_html_writer.cc
index 8ab2de4..5a6d670 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.