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

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: Updated to ToT. 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 2192a7dd056aceaea2d863d29da2a8884e1749dd..e2ca6d498432f1315e0d4de133d95b6cd684252f 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