Index: content/shell/renderer/layout_test/layout_test_render_frame_observer.cc |
diff --git a/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc b/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc |
index 4d7acff2fd2eab682b5dda5fd2815c6f7a03a6b2..59518d083dd0227e37318cd20f168993b18ecd27 100644 |
--- a/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc |
+++ b/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc |
@@ -21,11 +21,14 @@ namespace content { |
LayoutTestRenderFrameObserver::LayoutTestRenderFrameObserver( |
RenderFrame* render_frame) |
: RenderFrameObserver(render_frame), binding_(this) { |
- render_frame->GetWebFrame()->setContentSettingsClient( |
+ test_runner::WebTestRunner* test_runner = |
LayoutTestRenderThreadObserver::GetInstance() |
->test_interfaces() |
- ->TestRunner() |
- ->GetWebContentSettings()); |
+ ->TestRunner(); |
+ render_frame->GetWebFrame()->setContentSettingsClient( |
+ test_runner->GetWebContentSettings()); |
+ render_frame->GetWebFrame()->setTextCheckClient( |
+ test_runner->GetWebTextCheckClient()); |
render_frame->GetAssociatedInterfaceRegistry()->AddInterface(base::Bind( |
&LayoutTestRenderFrameObserver::BindRequest, base::Unretained(this))); |
} |