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

Issue 2884163002: media: Use StrongBindingSet for InterfaceFactoryImpl in MediaService (Closed)

Created:
3 years, 7 months ago by xhwang
Modified:
3 years, 7 months ago
Reviewers:
alokp
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, alokp+watch_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Use StrongBindingSet for InterfaceFactoryImpl in MediaService Previously InterfaceFactoryImpl instances are using SrongBinding such that they will only be destroyed on connection error. However, we could hit an issue when MediaService is being destructed, the MojoMediaClient is already destroyed, and an InterfaceFactoryImpl still tries to access the MojoMediaClient. This CL ensures that when MediaService is being destructed, all InterfaceFactoryImpl will also be destroyed to avoid the issue. BUG=721965 Review-Url: https://codereview.chromium.org/2884163002 Cr-Commit-Position: refs/heads/master@{#472261} Committed: https://chromium.googlesource.com/chromium/src/+/5223bd13f8a97e293361a3b9b2cc31101ba597da

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M media/mojo/services/media_service.h View 2 chunks +3 lines, -0 lines 0 comments Download
M media/mojo/services/media_service.cc View 2 chunks +2 lines, -1 line 2 comments Download

Messages

Total messages: 22 (16 generated)
xhwang
PTAL
3 years, 7 months ago (2017-05-16 07:55:11 UTC) #8
alokp
lgtm https://codereview.chromium.org/2884163002/diff/1/media/mojo/services/media_service.cc File media/mojo/services/media_service.cc (right): https://codereview.chromium.org/2884163002/diff/1/media/mojo/services/media_service.cc#newcode44 media/mojo/services/media_service.cc:44: interface_factory_bindings_.CloseAllBindings(); Do we need to manually delete InterfaceFactory ...
3 years, 7 months ago (2017-05-16 16:54:44 UTC) #14
xhwang
https://codereview.chromium.org/2884163002/diff/1/media/mojo/services/media_service.cc File media/mojo/services/media_service.cc (right): https://codereview.chromium.org/2884163002/diff/1/media/mojo/services/media_service.cc#newcode44 media/mojo/services/media_service.cc:44: interface_factory_bindings_.CloseAllBindings(); On 2017/05/16 16:54:44, alokp wrote: > Do we ...
3 years, 7 months ago (2017-05-16 17:05:33 UTC) #15
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/2884163002/1
3 years, 7 months ago (2017-05-16 17:52:09 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/5223bd13f8a97e293361a3b9b2cc31101ba597da
3 years, 7 months ago (2017-05-17 00:24:06 UTC) #21
kolos1
3 years, 7 months ago (2017-05-17 09:58:37 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2892563002/ by kolos@chromium.org.

The reason for reverting is: Layout tests failure ;
mojo/module-loading(-manual-deps-loading).html

BUG=723461.

Powered by Google App Engine
This is Rietveld 408576698