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