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

Unified Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc

Issue 1885993002: Use correct WebTestDelegate from WebViewTestClient and WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extracted focused view tracking to https://crrev.com/1886013002 Created 4 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
« no previous file with comments | « components/test_runner/web_view_test_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
diff --git a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
index e3aa0d01f6638584a6a7862459021ba4db036845..526d2d95581f8bbc13a8c156045f924cc5a1a0f5 100644
--- a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
+++ b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
@@ -53,6 +53,8 @@ void WebTestProxyCreated(RenderView* render_view,
test_runner::WebTestProxyBase* proxy) {
BlinkTestRunner* test_runner = new BlinkTestRunner(render_view);
test_runner->set_proxy(proxy);
+ proxy->set_delegate(test_runner);
+
if (!LayoutTestRenderProcessObserver::GetInstance()->test_delegate()) {
LayoutTestRenderProcessObserver::GetInstance()->SetTestDelegate(
test_runner);
@@ -62,8 +64,6 @@ void WebTestProxyCreated(RenderView* render_view,
->CreateWebViewTestClient(proxy));
proxy->SetInterfaces(
LayoutTestRenderProcessObserver::GetInstance()->test_interfaces());
- test_runner->proxy()->SetDelegate(
- LayoutTestRenderProcessObserver::GetInstance()->test_delegate());
}
void WebFrameTestProxyCreated(RenderFrame* render_frame,
« no previous file with comments | « components/test_runner/web_view_test_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698