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

Unified Diff: chrome/browser/tab_contents/spelling_menu_observer.cc

Issue 9368052: Removed WebTextCheckingResult legacy API use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elimianted ParamTrais<WebString>. Created 8 years, 10 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
Index: chrome/browser/tab_contents/spelling_menu_observer.cc
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.cc b/chrome/browser/tab_contents/spelling_menu_observer.cc
index e38828077499ebdddd26592a1e3edfc2c4b33291..485f42affe8225155556917d8c165a01b183d657 100644
--- a/chrome/browser/tab_contents/spelling_menu_observer.cc
+++ b/chrome/browser/tab_contents/spelling_menu_observer.cc
@@ -254,7 +254,7 @@ void SpellingMenuObserver::OnTextCheckComplete(
typedef std::vector<WebKit::WebTextCheckingResult> WebTextCheckingResults;
for (WebTextCheckingResults::const_iterator it = results.begin();
it != results.end(); ++it) {
- result_.replace(it->position, it->length, it->replacement);
+ result_.replace(it->location, it->length, it->replacement);
}
for (std::vector<string16>::const_iterator it = suggestions_.begin();
it != suggestions_.end(); ++it) {

Powered by Google App Engine
This is Rietveld 408576698