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

Issue 1815013002: Restore CDM context on Resume(). (Closed)

Created:
4 years, 9 months ago by sandersd (OOO until July 31)
Modified:
4 years, 9 months ago
Reviewers:
xhwang, Wez
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore CDM context on Resume(). Also converts all uses of |weak_factory_| to use a |weak_this_|, as GetWeakPtr() is not threadsafe. BUG=595898 Committed: https://crrev.com/7655364f9ae672fdbd05e5751006387207b0bf51 Cr-Commit-Position: refs/heads/master@{#382109}

Patch Set 1 #

Total comments: 5

Patch Set 2 : base::Unretained #

Total comments: 3

Patch Set 3 : weak_this_ #

Patch Set 4 : Capitalization. #

Patch Set 5 : Embarassing typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -70 lines) Patch
M media/base/pipeline_impl.h View 1 2 3 2 chunks +17 lines, -5 lines 0 comments Download
M media/base/pipeline_impl.cc View 1 2 3 4 17 chunks +62 lines, -65 lines 0 comments Download

Messages

Total messages: 34 (13 generated)
sandersd (OOO until July 31)
4 years, 9 months ago (2016-03-17 22:32:12 UTC) #2
ddorwin
The BUG entry is incorrect. I don't know the background here, but will resume work ...
4 years, 9 months ago (2016-03-17 22:44:18 UTC) #3
sandersd (OOO until July 31)
On 2016/03/17 22:44:18, ddorwin wrote: > The BUG entry is incorrect. > > I don't ...
4 years, 9 months ago (2016-03-17 22:47:41 UTC) #5
xhwang
The logic looks good. I just have a question around weak ptr. https://chromiumcodereview.appspot.com/1815013002/diff/1/media/base/pipeline_impl.cc File media/base/pipeline_impl.cc ...
4 years, 9 months ago (2016-03-17 23:11:15 UTC) #6
xhwang
Also, it'll be great to have some test coverage, though it's not clear to me ...
4 years, 9 months ago (2016-03-17 23:12:20 UTC) #7
sandersd (OOO until July 31)
I agree on testing, but I have not found a way to do it yet. ...
4 years, 9 months ago (2016-03-17 23:25:03 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815013002/20001
4 years, 9 months ago (2016-03-18 00:53:49 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/37388) android_chromium_gn_compile_rel on ...
4 years, 9 months ago (2016-03-18 00:57:50 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815013002/20001
4 years, 9 months ago (2016-03-18 02:03:35 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 03:26:49 UTC) #16
xhwang
+wez: Please see the discussion about the thread safety of GetWeakPtr() call :) https://chromiumcodereview.appspot.com/1815013002/diff/1/media/base/pipeline_impl.cc File ...
4 years, 9 months ago (2016-03-18 17:05:55 UTC) #18
Wez
https://codereview.chromium.org/1815013002/diff/1/media/base/pipeline_impl.cc File media/base/pipeline_impl.cc (right): https://codereview.chromium.org/1815013002/diff/1/media/base/pipeline_impl.cc#newcode745 media/base/pipeline_impl.cc:745: weak_factory_.GetWeakPtr(), On 2016/03/18 17:05:55, xhwang wrote: > On 2016/03/17 ...
4 years, 9 months ago (2016-03-18 19:49:28 UTC) #19
xhwang
https://codereview.chromium.org/1815013002/diff/1/media/base/pipeline_impl.cc File media/base/pipeline_impl.cc (right): https://codereview.chromium.org/1815013002/diff/1/media/base/pipeline_impl.cc#newcode745 media/base/pipeline_impl.cc:745: weak_factory_.GetWeakPtr(), On 2016/03/18 19:49:28, Wez wrote: > On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 20:05:34 UTC) #20
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1815013002/diff/20001/media/base/pipeline_impl.cc File media/base/pipeline_impl.cc (right): https://chromiumcodereview.appspot.com/1815013002/diff/20001/media/base/pipeline_impl.cc#newcode746 media/base/pipeline_impl.cc:746: cdm_attached_cb, cdm_context)); On 2016/03/18 19:49:28, Wez wrote: > On ...
4 years, 9 months ago (2016-03-18 20:26:18 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815013002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815013002/80001
4 years, 9 months ago (2016-03-18 20:33:53 UTC) #24
xhwang
It would be nice to add a comment about adding tests somewhere. I think suspend/resume+EME ...
4 years, 9 months ago (2016-03-18 20:51:23 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 21:53:00 UTC) #27
sandersd (OOO until July 31)
On 2016/03/18 20:51:23, xhwang wrote: > It would be nice to add a comment about ...
4 years, 9 months ago (2016-03-18 22:08:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815013002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815013002/80001
4 years, 9 months ago (2016-03-18 22:08:50 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-18 22:14:45 UTC) #32
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 22:16:07 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7655364f9ae672fdbd05e5751006387207b0bf51
Cr-Commit-Position: refs/heads/master@{#382109}

Powered by Google App Engine
This is Rietveld 408576698