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

Issue 143003031: Allow retrieval of media device ID salt even after ResourceContext has gone away. (Closed)

Created:
6 years, 10 months ago by Jói
Modified:
6 years, 10 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Allow retrieval of media device ID salt even after ResourceContext has gone away. TBR=willchan@chromium.org BUG=341211 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251024

Patch Set 1 #

Total comments: 1

Patch Set 2 : New approach. #

Patch Set 3 : Fix indentation. #

Patch Set 4 : Test updates. #

Patch Set 5 : Fix test. #

Total comments: 1

Patch Set 6 : Add TODO about proper fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -91 lines) Patch
M chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/media_device_id_salt.h View 1 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/device_request_message_filter.cc View 1 2 chunks +7 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/device_request_message_filter_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 6 chunks +12 lines, -12 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 6 chunks +10 lines, -10 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 19 chunks +24 lines, -19 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download
M content/public/browser/media_device_id.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M content/public/browser/media_device_id.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M content/public/browser/resource_context.h View 1 2 3 4 5 1 chunk +23 lines, -5 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Jói
WDYT?
6 years, 10 months ago (2014-02-11 13:22:59 UTC) #1
tommi (sloooow) - chröme
https://codereview.chromium.org/143003031/diff/1/content/browser/renderer_host/media/device_request_message_filter.cc File content/browser/renderer_host/media/device_request_message_filter.cc (right): https://codereview.chromium.org/143003031/diff/1/content/browser/renderer_host/media/device_request_message_filter.cc#newcode37 content/browser/renderer_host/media/device_request_message_filter.cc:37: CancelAllRequests(); I'm not sure this is actually what is ...
6 years, 10 months ago (2014-02-11 15:09:46 UTC) #2
Jói
Hmm, good points all, am reading the code to try to figure a correct understanding. ...
6 years, 10 months ago (2014-02-11 16:31:29 UTC) #3
Jói
Please take another look, this is the refcounted approach we discussed. Cheers, Jói
6 years, 10 months ago (2014-02-12 14:07:04 UTC) #4
tommi (sloooow) - chröme
lgtm
6 years, 10 months ago (2014-02-12 14:31:54 UTC) #5
Jói
+willchan for content/browser/profiles/profile_io_data*
6 years, 10 months ago (2014-02-12 14:34:48 UTC) #6
willchan no longer on Chromium
https://codereview.chromium.org/143003031/diff/210002/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://codereview.chromium.org/143003031/diff/210002/chrome/browser/profiles/profile_io_data.h#newcode479 chrome/browser/profiles/profile_io_data.h:479: mutable scoped_refptr<MediaDeviceIDSalt> media_device_id_salt_; Who owns MediaDeviceIDSalt now?
6 years, 10 months ago (2014-02-12 19:32:22 UTC) #7
Jói
Generally speaking, the last reference will be owned by the ResourceContext implementation, but in rare ...
6 years, 10 months ago (2014-02-12 19:48:09 UTC) #8
willchan no longer on Chromium
You're right, that seems broken and we should fix it. Two more questions: * Why ...
6 years, 10 months ago (2014-02-12 19:51:55 UTC) #9
Jói
This is a fairly frequent crasher, hence urgent. A variant of this was merged to ...
6 years, 10 months ago (2014-02-12 21:16:34 UTC) #10
willchan no longer on Chromium
On Wed, Feb 12, 2014 at 1:16 PM, Jói Sigurðsson <joi@chromium.org> wrote: > This is ...
6 years, 10 months ago (2014-02-12 21:19:13 UTC) #11
tommi (sloooow) - chröme
Not much to add really I think you've explained it well. I think this approach ...
6 years, 10 months ago (2014-02-12 21:32:52 UTC) #12
Jói
Thanks guys. I've added a TODO comment to resource_context.h about the possibility of a proper ...
6 years, 10 months ago (2014-02-13 10:39:09 UTC) #13
Jói
The CQ bit was checked by joi@chromium.org
6 years, 10 months ago (2014-02-13 10:39:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/143003031/390001
6 years, 10 months ago (2014-02-13 10:39:51 UTC) #15
commit-bot: I haz the power
Change committed as 251024
6 years, 10 months ago (2014-02-13 15:34:28 UTC) #16
willchan no longer on Chromium
6 years, 10 months ago (2014-02-13 16:50:07 UTC) #17
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698