summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 00:35:33 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 00:35:33 +0000
commitfe44a4cacc61eecda10d67f6dc11aa3f5f31189f (patch)
tree6cca601f8fb37144f7f88e90718600899db0c8c3
parentdc5641794fb5f511ca74d1d7392ccc29210ea9cd (diff)
downloadchromium_src-fe44a4cacc61eecda10d67f6dc11aa3f5f31189f.zip
chromium_src-fe44a4cacc61eecda10d67f6dc11aa3f5f31189f.tar.gz
chromium_src-fe44a4cacc61eecda10d67f6dc11aa3f5f31189f.tar.bz2
Revert Changes to stop tests breaking.
TBR=brettw Review URL: http://codereview.chromium.org/112077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17270 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/spellcheck_unittest.cc1
-rw-r--r--chrome/browser/spellchecker.cc4
2 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc
index 3964d6d..aa76bf0 100644
--- a/chrome/browser/spellcheck_unittest.cc
+++ b/chrome/browser/spellcheck_unittest.cc
@@ -506,7 +506,6 @@ TEST_F(SpellCheckTest, GetAutoCorrectionWord_EN_US) {
const wchar_t* expected_result;
} kTestCases[] = {
{L"teh", L"the"},
- {L"TEH", L""},
{L"moer", L"more"},
{L"watre", L"water"},
{L"noen", L""},
diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc
index 99ce06c..68643b5 100644
--- a/chrome/browser/spellchecker.cc
+++ b/chrome/browser/spellchecker.cc
@@ -486,10 +486,6 @@ void SpellChecker::GetAutoCorrectionWord(const std::wstring& word,
wchar_t misspelled_word[kMaxAutoCorrectWordSize + 1];
const wchar_t* word_char = word.c_str();
for (int i = 0; i <= kMaxAutoCorrectWordSize; i++) {
- // Ignore words having uppercase letter, other that the first letter.
- if (i > 0 && u_isupper(static_cast<UChar32>(word_char[i])))
- return;
-
if (i >= word_length)
misspelled_word[i] = NULL;
else