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

Unified Diff: chrome/tools/convert_dict/aff_reader.cc

Issue 2850042: Deprecate more old filepath functions. (Closed)
Patch Set: rebase Created 10 years, 5 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
Index: chrome/tools/convert_dict/aff_reader.cc
diff --git a/chrome/tools/convert_dict/aff_reader.cc b/chrome/tools/convert_dict/aff_reader.cc
index ea7e2a84465e87e9b45a3ae69af08108ded29ef3..767ba92b6f6bbe2efa78fdfa8136214f2c8c38ad 100644
--- a/chrome/tools/convert_dict/aff_reader.cc
+++ b/chrome/tools/convert_dict/aff_reader.cc
@@ -48,7 +48,8 @@ void CollapseDuplicateSpaces(std::string* str) {
AffReader::AffReader(const std::string& filename)
: has_indexed_affixes_(false) {
- file_ = file_util::OpenFile(filename, "r");
+ FilePath path = FilePath::FromWStringHack(ASCIIToWide(filename));
Evan Martin 2010/07/08 16:51:11 I am going to improve this in a follow-up change.
+ file_ = file_util::OpenFile(path, "r");
// Default to Latin1 in case the file doesn't specify it.
encoding_ = "ISO8859-1";

Powered by Google App Engine
This is Rietveld 408576698