summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/mork_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/importer/mork_reader.cc')
-rw-r--r--chrome/browser/importer/mork_reader.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/importer/mork_reader.cc b/chrome/browser/importer/mork_reader.cc
index 4a9c1b2..7f5e5c6 100644
--- a/chrome/browser/importer/mork_reader.cc
+++ b/chrome/browser/importer/mork_reader.cc
@@ -44,6 +44,7 @@
#include <algorithm>
+#include "base/file_path.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/browser/history/history_types.h"
@@ -111,7 +112,8 @@ MorkReader::~MorkReader() {
}
bool MorkReader::Read(const std::wstring& filename) {
- stream_.open(filename.c_str());
+ FilePath path = FilePath::FromWStringHack(filename);
+ stream_.open(path.value().c_str());
if (!stream_.is_open())
return false;