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

Unified Diff: chrome/tools/convert_dict/dic_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/dic_reader.cc
diff --git a/chrome/tools/convert_dict/dic_reader.cc b/chrome/tools/convert_dict/dic_reader.cc
index 2233d04919d53d1836ddd2502300745b0ff3fa0a..a5f74715884fcd35d4f9645bee99c1463b466057 100644
--- a/chrome/tools/convert_dict/dic_reader.cc
+++ b/chrome/tools/convert_dict/dic_reader.cc
@@ -129,8 +129,11 @@ bool PopulateWordSet(WordSet* word_set, FILE* file, AffReader* aff_reader,
} // namespace
DicReader::DicReader(const std::string& filename) {
- file_ = file_util::OpenFile(filename, "r");
- additional_words_file_ = file_util::OpenFile(filename + "_delta", "r");
+ FilePath path = FilePath::FromWStringHack(ASCIIToWide(filename));
+ file_ = file_util::OpenFile(path, "r");
Nico 2010/07/08 17:37:28 also followup change?
+ additional_words_file_ =
+ file_util::OpenFile(FilePath(path.value() + FILE_PATH_LITERAL("_delta")),
Nico 2010/07/08 17:37:28 InsertBeforeExtension?
+ "r");
}
DicReader::~DicReader() {

Powered by Google App Engine
This is Rietveld 408576698