summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-27 01:22:46 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-27 01:22:46 +0000
commit087514f6720d17a98d1c4b1d378b5d565798e910 (patch)
tree4f2a16c43a13c13b0726aebd03d83242cf9822f5
parente49c051e5ace6e526f700a704f8202506e5283af (diff)
downloadchromium_src-087514f6720d17a98d1c4b1d378b5d565798e910.zip
chromium_src-087514f6720d17a98d1c4b1d378b5d565798e910.tar.gz
chromium_src-087514f6720d17a98d1c4b1d378b5d565798e910.tar.bz2
Fix convert_dict to look for .dic_delta rather than _delta.dic
also add more output to hopefully prevent confusion in the future. BUG=none TEST=none Review URL: http://codereview.chromium.org/6341009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72738 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/tools/convert_dict/dic_reader.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/tools/convert_dict/dic_reader.cc b/chrome/tools/convert_dict/dic_reader.cc
index c8ee113..0475eff 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() {