Index: content/browser/webui/web_ui_mojo_browsertest.cc |
diff --git a/content/browser/webui/web_ui_mojo_browsertest.cc b/content/browser/webui/web_ui_mojo_browsertest.cc |
index 9830f1df00634a8e99d6dba31c8372e39f0d5045..d967230424bed2b359f5ae3df1b231ba8b6d59f4 100644 |
--- a/content/browser/webui/web_ui_mojo_browsertest.cc |
+++ b/content/browser/webui/web_ui_mojo_browsertest.cc |
@@ -82,9 +82,6 @@ class PingBrowserTargetImpl : public BrowserTargetImpl { |
~PingBrowserTargetImpl() override {} |
- // mojo::InterfaceImpl<BrowserTarget> overrides: |
- void OnConnectionEstablished() override { client()->Ping(); } |
- |
// Quit the RunLoop when called. |
void PingResponse() override { |
got_message = true; |
@@ -134,6 +131,7 @@ class PingTestWebUIController : public TestWebUIController { |
void CreateHandler(mojo::InterfaceRequest<BrowserTarget> request) { |
browser_target_.reset(mojo::WeakBindToRequest( |
new PingBrowserTargetImpl(run_loop_), &request)); |
+ browser_target_->client()->Ping(); |
} |
private: |