Fix the version check logic of the downloadable dictionary for NaCl-Mozc.
This CL fixes a bug in the version check of the downloadable dictionary for NaCl-Mozc. Note that only NaCl-Mozc built with GOOGLE_JAPANESE_INPUT_BUILD enabled is affected.
BUG=none
TEST=none
git-svn-id: https://mozc.googlecode.com/svn/trunk@222 a6090854-d499-a067-5803-1114d4e51264
Yohei Yukawa
9 years ago
351 | 351 |
// 0x2-: BigDictionary version miss match.
|
352 | 352 |
// 0x-*: Status of the downloader.
|
353 | 353 |
int GetBigDictionaryState() {
|
354 | |
if (big_dictionary_version_ == Version::GetMozcVersion()) {
|
|
354 |
if (big_dictionary_version_ == Version::GetMozcNaclDictionaryVersion()) {
|
355 | 355 |
return 0;
|
356 | 356 |
}
|
357 | 357 |
int status = 0;
|
0 | 0 |
MAJOR=1
|
1 | 1 |
MINOR=15
|
2 | |
BUILD=1801
|
|
2 |
BUILD=1802
|
3 | 3 |
REVISION=102
|
4 | 4 |
# ANDROID_VERSION_CODE should be the number of update times.
|
5 | 5 |
# It must at least increase when the build updates.
|
6 | |
ANDROID_VERSION_CODE=1801
|
|
6 |
ANDROID_VERSION_CODE=1802
|
7 | 7 |
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
|
8 | 8 |
# downloaded by NaCl Mozc.
|
9 | 9 |
NACL_DICTIONARY_VERSION=4
|