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

Unified Diff: components/spellcheck/renderer/spellcheck_provider.cc

Issue 2797073002: Move WebTextCheckClient reference from WebViewImpl to WebLocalFrameImpl (Closed)
Patch Set: Spell my name correctly Created 3 years, 8 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: components/spellcheck/renderer/spellcheck_provider.cc
diff --git a/components/spellcheck/renderer/spellcheck_provider.cc b/components/spellcheck/renderer/spellcheck_provider.cc
index d41219a2ea5cc0b6f53c2d8a42894c58db66ddce..73d536ff33c83783387c1617bb26b11e7fb94da2 100644
--- a/components/spellcheck/renderer/spellcheck_provider.cc
+++ b/components/spellcheck/renderer/spellcheck_provider.cc
@@ -10,6 +10,7 @@
#include "components/spellcheck/renderer/spellcheck.h"
#include "components/spellcheck/renderer/spellcheck_language.h"
#include "components/spellcheck/spellcheck_build_features.h"
+#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_view.h"
#include "third_party/WebKit/public/platform/WebVector.h"
#include "third_party/WebKit/public/web/WebDocument.h"
@@ -41,7 +42,6 @@ SpellCheckProvider::SpellCheckProvider(
spellcheck_(spellcheck) {
DCHECK(spellcheck_);
if (render_view) { // NULL in unit tests.
- render_view->GetWebView()->setTextCheckClient(this);
EnableSpellcheck(spellcheck_->IsSpellcheckEnabled());
}
}

Powered by Google App Engine
This is Rietveld 408576698