Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: chrome/browser/bookmarks/bookmark_html_writer.cc

Issue 18764: Change FileStream to use FilePath instead of wstring. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/unzip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_html_writer.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_html_writer.cc (revision 8584)
+++ chrome/browser/bookmarks/bookmark_html_writer.cc (working copy)
@@ -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 @@
// 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 @@
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 @@
// 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
« no previous file with comments | « no previous file | chrome/common/unzip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698