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

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

Issue 2929002: Convert some tools to use FilePaths for file names. (Closed)
Patch Set: ok 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
« no previous file with comments | « chrome/tools/convert_dict/aff_reader.h ('k') | chrome/tools/convert_dict/convert_dict.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 767ba92b6f6bbe2efa78fdfa8136214f2c8c38ad..0e6cfdaab461b14d014754afac75b3e4234e9350 100644
--- a/chrome/tools/convert_dict/aff_reader.cc
+++ b/chrome/tools/convert_dict/aff_reader.cc
@@ -46,9 +46,8 @@ void CollapseDuplicateSpaces(std::string* str) {
} // namespace
-AffReader::AffReader(const std::string& filename)
+AffReader::AffReader(const FilePath& path)
: has_indexed_affixes_(false) {
- FilePath path = FilePath::FromWStringHack(ASCIIToWide(filename));
file_ = file_util::OpenFile(path, "r");
// Default to Latin1 in case the file doesn't specify it.
« no previous file with comments | « chrome/tools/convert_dict/aff_reader.h ('k') | chrome/tools/convert_dict/convert_dict.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698