summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/api
diff options
context:
space:
mode:
authorsky <sky@chromium.org>2016-01-26 13:13:39 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-26 21:14:52 +0000
commitd837812ff8dc8042d328c089648cf7014a410c79 (patch)
tree2c427b0f0e1c10ce87c86091391dbae3e0665796 /extensions/renderer/api
parent1d248c223d2972bf4efcee00ba2ea92c14829977 (diff)
downloadchromium_src-d837812ff8dc8042d328c089648cf7014a410c79.zip
chromium_src-d837812ff8dc8042d328c089648cf7014a410c79.tar.gz
chromium_src-d837812ff8dc8042d328c089648cf7014a410c79.tar.bz2
Make use of CreateInterfacePtrAndBind() where appropriate
BUG=579645 TEST=none Review URL: https://codereview.chromium.org/1635603002 Cr-Commit-Position: refs/heads/master@{#371598}
Diffstat (limited to 'extensions/renderer/api')
-rw-r--r--extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc b/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc
index ceb6ad9..67edf4b 100644
--- a/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc
+++ b/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc
@@ -29,13 +29,10 @@ WiFiDisplaySession::WiFiDisplaySession(
&WiFiDisplaySession::OnConnectionError,
weak_factory_.GetWeakPtr()));
- WiFiDisplaySessionServiceClientPtr client_ptr;
- binding_.Bind(GetProxy(&client_ptr));
+ service_->SetClient(binding_.CreateInterfacePtrAndBind());
binding_.set_connection_error_handler(base::Bind(
&WiFiDisplaySession::OnConnectionError,
weak_factory_.GetWeakPtr()));
- DCHECK(client_ptr);
- service_->SetClient(std::move(client_ptr));
}
WiFiDisplaySession::~WiFiDisplaySession() {