Index: components/test_runner/web_test_interfaces.cc |
diff --git a/components/test_runner/web_test_interfaces.cc b/components/test_runner/web_test_interfaces.cc |
index 184032205eb0c3199b034b226e15ec784cc3542c..6f87eb64971e00803d3db20eff37ef6d19791ef2 100644 |
--- a/components/test_runner/web_test_interfaces.cc |
+++ b/components/test_runner/web_test_interfaces.cc |
@@ -93,15 +93,16 @@ WebTestInterfaces::CreateAppBannerClient() { |
std::unique_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient( |
WebViewTestProxyBase* web_view_test_proxy_base, |
WebFrameTestProxyBase* web_frame_test_proxy_base) { |
- return base::MakeUnique<WebFrameTestClient>( |
- interfaces_->GetTestRunner(), interfaces_->GetDelegate(), |
- web_view_test_proxy_base, web_frame_test_proxy_base); |
+ // TODO(lukasza): Do not pass the WebTestDelegate below - it's lifetime can |
+ // differ from the lifetime of WebFrameTestClient - https://crbug.com/606594. |
+ return base::MakeUnique<WebFrameTestClient>(interfaces_->GetDelegate(), |
+ web_view_test_proxy_base, |
+ web_frame_test_proxy_base); |
} |
std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( |
WebViewTestProxyBase* web_view_test_proxy_base) { |
- return base::MakeUnique<WebViewTestClient>(interfaces_->GetTestRunner(), |
- web_view_test_proxy_base); |
+ return base::MakeUnique<WebViewTestClient>(web_view_test_proxy_base); |
} |
std::unique_ptr<WebWidgetTestClient> |