diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 21:38:11 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-26 21:38:11 +0000 |
commit | 07167e8f26d8c0272dd528944f0d105aa2962bab (patch) | |
tree | 4afb3d77169a9f1ac873a86cb3eafa824d6e47a0 /chrome/browser/bookmarks | |
parent | 25a873babf94d9e1647a9722d313b4e52286220d (diff) | |
download | chromium_src-07167e8f26d8c0272dd528944f0d105aa2962bab.zip chromium_src-07167e8f26d8c0272dd528944f0d105aa2962bab.tar.gz chromium_src-07167e8f26d8c0272dd528944f0d105aa2962bab.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_html_writer.cc | 8 |
1 files changed, 5 insertions, 3 deletions
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<Value> 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> writer(new Writer(codec.Encode(model), path)); + scoped_ptr<Writer> writer(new Writer(codec.Encode(model), + FilePath::FromWStringHack(path))); if (thread) thread->PostTask(FROM_HERE, writer.release()); else |