| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 45028e9c00cf69c8da56ce10e1d82ec9e5a6004a..849c3f1c4d9f8bb1244f8c655095c2623f20e01c 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -2363,6 +2363,23 @@ void WebContentsImpl::SendScreenRects() {
|
| browser_plugin_embedder_->DidSendScreenRects();
|
| }
|
|
|
| +TextInputManager* WebContentsImpl::GetTextInputManager() {
|
| + if (GetOuterWebContents()) {
|
| + if (text_input_manager_) {
|
| + // Since the outer WebContents exists, we should destroy
|
| + // |text_input_manager_| which will in turn notify all the
|
| + // RenderWidgetHostViews.
|
| + text_input_manager_.reset(nullptr);
|
| + }
|
| + return GetOuterWebContents()->GetTextInputManager();
|
| + }
|
| +
|
| + if (!text_input_manager_)
|
| + text_input_manager_.reset(new TextInputManager());
|
| +
|
| + return text_input_manager_.get();
|
| +}
|
| +
|
| BrowserAccessibilityManager*
|
| WebContentsImpl::GetRootBrowserAccessibilityManager() {
|
| RenderFrameHostImpl* rfh = GetMainFrame();
|
|
|