From 07167e8f26d8c0272dd528944f0d105aa2962bab Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Mon, 26 Jan 2009 21:38:11 +0000 Subject: Change FileStream to use FilePath instead of wstring. Review URL: http://codereview.chromium.org/18764 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8663 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/bookmarks/bookmark_html_writer.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chrome/browser/bookmarks') diff --git a/chrome/browser/bookmarks/bookmark_html_writer.cc b/chrome/browser/bookmarks/bookmark_html_writer.cc index cb5cf87..bb39ebe 100644 --- a/chrome/browser/bookmarks/bookmark_html_writer.cc +++ b/chrome/browser/bookmarks/bookmark_html_writer.cc @@ -4,6 +4,7 @@ #include "chrome/browser/bookmarks/bookmark_html_writer.h" +#include "base/file_path.h" #include "base/file_util.h" #include "base/message_loop.h" #include "base/platform_file.h" @@ -71,7 +72,7 @@ const size_t kIndentSize = 4; // Class responsible for the actual writing. class Writer : public Task { public: - Writer(Value* bookmarks, const std::wstring& path) + Writer(Value* bookmarks, const FilePath& path) : bookmarks_(bookmarks), path_(path) { } @@ -300,7 +301,7 @@ class Writer : public Task { scoped_ptr bookmarks_; // Path we're writing to. - std::wstring path_; + FilePath path_; // File we're writing to. net::FileStream file_stream_; @@ -319,7 +320,8 @@ void WriteBookmarks(MessageLoop* thread, // for the duration of the write), as such we make a copy of the // BookmarkModel using BookmarkCodec then write from that. BookmarkCodec codec; - scoped_ptr writer(new Writer(codec.Encode(model), path)); + scoped_ptr writer(new Writer(codec.Encode(model), + FilePath::FromWStringHack(path))); if (thread) thread->PostTask(FROM_HERE, writer.release()); else -- cgit v1.1