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

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

Issue 6341009: Fix convert_dict to look for .dic_delta rather than _delta.dic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c8ee113cc521eb8131d4bc25c5ba6cf2d29fa14e..0475eff53c81df7614c1fdb46ab063d146e627fd 100644
--- a/chrome/tools/convert_dict/dic_reader.cc
+++ b/chrome/tools/convert_dict/dic_reader.cc
@@ -132,8 +132,13 @@ DicReader::DicReader(const FilePath& path) {
file_ = file_util::OpenFile(path, "r");
FilePath additional_path =
- path.InsertBeforeExtension(FILE_PATH_LITERAL("_delta"));
+ path.ReplaceExtension(FILE_PATH_LITERAL("dic_delta"));
additional_words_file_ = file_util::OpenFile(additional_path, "r");
+
+ if (additional_words_file_)
+ printf("Reading %" PRFilePath " ...\n", additional_path.value().c_str());
+ else
+ printf("%" PRFilePath " not found.\n", additional_path.value().c_str());
}
DicReader::~DicReader() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698