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

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

Issue 1244443005: Patch 5: Implemented android message filter and platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@4_remove_mac_redundancies
Patch Set: 1:1 SpellingRequest/JavaObject relationship, slow when spammed Created 5 years, 4 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 | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck_provider.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_provider.cc b/chrome/renderer/spellchecker/spellcheck_provider.cc
index 001484ede8d768cdd8c32737dfc2e14482d3c413..2c77b86f8142a4a36bc8f6307bc4bdf5bf31ed6b 100644
--- a/chrome/renderer/spellchecker/spellcheck_provider.cc
+++ b/chrome/renderer/spellchecker/spellcheck_provider.cc
@@ -65,8 +65,10 @@ void SpellCheckProvider::RequestTextChecking(
}
// Try to satisfy check from cache.
- if (SatisfyRequestFromCache(text, completion))
+ if (SatisfyRequestFromCache(text, completion)){
+ LOG(ERROR) << "DYLANKING Cache Hit";
return;
+ }
// Send this text to a browser. A browser checks the user profile and send
// this text to the Spelling service only if a user enables this feature.
@@ -270,10 +272,13 @@ void SpellCheckProvider::OnRespondTextCheck(
DCHECK(spellcheck_);
WebTextCheckingCompletion* completion =
text_check_completions_.Lookup(identifier);
- if (!completion)
+ if (!completion){
+ LOG(ERROR) << "DYLANKING In OnRespondTextCheck Early Return";
return;
+ }
text_check_completions_.Remove(identifier);
blink::WebVector<blink::WebTextCheckingResult> textcheck_results;
+ LOG(ERROR) << "DYLANKING In OnRespondTextCheck, Calling CreateTextCheckingResults";
spellcheck_->CreateTextCheckingResults(SpellCheck::DO_NOT_MODIFY,
0,
line,
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698