| Index: chrome/renderer/spellchecker/spellcheck.cc
|
| diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
|
| index 4bfa5853e15e7b2b8d555339f179ef1e0757ff41..3544c27297ee260f0407b8c2a0d010a8c0dad992 100644
|
| --- a/chrome/renderer/spellchecker/spellcheck.cc
|
| +++ b/chrome/renderer/spellchecker/spellcheck.cc
|
| @@ -245,15 +245,15 @@ string16 SpellCheck::GetAutoCorrectionWord(const string16& word, int tag) {
|
| return autocorrect_word; // Return the empty string.
|
|
|
| int word_length = static_cast<int>(word.size());
|
| - if (word_length < 2 || word_length > SpellCheckCommon::kMaxAutoCorrectWordSize)
|
| + if (word_length < 2 || word_length > chrome::kMaxAutoCorrectWordSize)
|
| return autocorrect_word;
|
|
|
| if (InitializeIfNeeded())
|
| return autocorrect_word;
|
|
|
| - char16 misspelled_word[SpellCheckCommon::kMaxAutoCorrectWordSize + 1];
|
| + char16 misspelled_word[chrome::kMaxAutoCorrectWordSize + 1];
|
| const char16* word_char = word.c_str();
|
| - for (int i = 0; i <= SpellCheckCommon::kMaxAutoCorrectWordSize; i++) {
|
| + for (int i = 0; i <= chrome::kMaxAutoCorrectWordSize; ++i) {
|
| if (i >= word_length)
|
| misspelled_word[i] = 0;
|
| else
|
| @@ -454,7 +454,7 @@ void SpellCheck::FillSuggestionList(
|
|
|
| // Populate the vector of WideStrings.
|
| for (int i = 0; i < number_of_suggestions; i++) {
|
| - if (i < SpellCheckCommon::kMaxSuggestions)
|
| + if (i < chrome::kMaxSuggestions)
|
| optional_suggestions->push_back(UTF8ToUTF16(suggestions[i]));
|
| free(suggestions[i]);
|
| }
|
|
|