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

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 10388178: Disable retrieving suggestions in the background. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/renderer/spellchecker/spellcheck.cc
===================================================================
--- chrome/renderer/spellchecker/spellcheck.cc (revision 137556)
+++ chrome/renderer/spellchecker/spellcheck.cc (working copy)
@@ -236,19 +236,16 @@
int misspelling_start = 0;
int misspelling_length = 0;
while (offset <= length) {
- std::vector<string16> suggestions;
if (SpellCheckWord(&text[offset],
length - offset,
0,
&misspelling_start,
&misspelling_length,
- &suggestions)) {
+ NULL)) {
return true;
}
string16 replacement;
- if (!suggestions.empty())
- replacement = JoinString(suggestions, '\n');
results->push_back(SpellCheckResult(
SpellCheckResult::SPELLING,
misspelling_start + offset,
« 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