Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Issue 2842493003: Fix use-after-move in media/webrtc permission prompting code (Closed)

Created:
3 years, 8 months ago by Reid Kleckner
Modified:
3 years, 7 months ago
Reviewers:
Nico, raymes
CC:
chromium-reviews, chfremer+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix use-after-move in media/webrtc permission prompting code Accessing a unique_ptr in the same call expression that moves it is generally not safe, since different compilers evaluate have different orders of evaluation. BUG=714609 TBR=raymes@chromium.org,thakis@chromium.org Review-Url: https://codereview.chromium.org/2842493003 Cr-Commit-Position: refs/heads/master@{#466830} Committed: https://chromium.googlesource.com/chromium/src/+/27ae42407b0effd81dd43d7542305f5cc1aa1d58

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M chrome/browser/media/webrtc/media_stream_devices_controller.cc View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Reid Kleckner
3 years, 8 months ago (2017-04-24 23:18:10 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842493003/1
3 years, 8 months ago (2017-04-24 23:18:55 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/27ae42407b0effd81dd43d7542305f5cc1aa1d58
3 years, 8 months ago (2017-04-24 23:59:52 UTC) #6
Nico
lgtm https://bugs.chromium.org/p/chromium/issues/detail?id=409318#c16 strikes again – but I guess the base::Passed(&foo) idiom means the llvm-side implementation ...
3 years, 8 months ago (2017-04-25 00:15:47 UTC) #7
raymes
3 years, 7 months ago (2017-04-25 22:07:31 UTC) #8
Message was sent while issue was closed.
Thanks for the fix!

Powered by Google App Engine
This is Rietveld 408576698