summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
authormikhail.pozdnyakov <mikhail.pozdnyakov@intel.com>2016-03-09 04:04:16 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-09 12:06:31 +0000
commit687391c896f5f146c6bee6efecaffd1dd6364ef9 (patch)
tree18f04d61c358a94c8d4a14d00edf36aa3091988e /extensions/renderer
parent2805fa2dd041d9cd09cab2f03d7a56c8442049cd (diff)
downloadchromium_src-687391c896f5f146c6bee6efecaffd1dd6364ef9.zip
chromium_src-687391c896f5f146c6bee6efecaffd1dd6364ef9.tar.gz
chromium_src-687391c896f5f146c6bee6efecaffd1dd6364ef9.tar.bz2
[chrome.displaySource] Fix use of scoped_ptr<base::Timer> after it was moved
Review URL: https://codereview.chromium.org/1775373002 Cr-Commit-Position: refs/heads/master@{#380120}
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc2
1 files changed, 1 insertions, 1 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 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<int, scoped_ptr<base::Timer>>(
++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()),