From 687391c896f5f146c6bee6efecaffd1dd6364ef9 Mon Sep 17 00:00:00 2001 From: "mikhail.pozdnyakov" Date: Wed, 9 Mar 2016 04:04:16 -0800 Subject: [chrome.displaySource] Fix use of scoped_ptr after it was moved Review URL: https://codereview.chromium.org/1775373002 Cr-Commit-Position: refs/heads/master@{#380120} --- .../renderer/api/display_source/wifi_display/wifi_display_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/renderer') 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 a9bd739..b836854 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 @@ -155,7 +155,7 @@ unsigned WiFiDisplaySession::CreateTimer(int seconds) { std::pair>( ++timer_id_, std::move(timer))); DCHECK(insert_ret.second); - timer->Start(FROM_HERE, + insert_ret.first->second->Start(FROM_HERE, base::TimeDelta::FromSeconds(seconds), base::Bind(&wds::Source::OnTimerEvent, base::Unretained(wfd_source_.get()), -- cgit v1.1