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

Issue 1945903006: Motown: Move responsibility for binding to MediaFactoryService::Product (Closed)

Created:
4 years, 7 months ago by dalesat
Modified:
4 years, 7 months ago
Reviewers:
kulakowski
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Motown: Move responsibility for binding to MediaFactoryService::Product MediaFactoryService::Product is a base class for the products of the factory. Previously, it was just about the factory's ownership of the product. This CL moves responsibility for the binding to Product as well, eliminating some duplicated code. This change also introduces RCHECK, a macro that products can use instead of DCHECK when a failure should result in the shutdown of the product. R=kulakowski@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/bfa19c495748f4fa4e6b616ba42e1d11b9006600

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change per feedback - rename Abort to UnbindAndReleaseFromOwner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -74 lines) Patch
M services/media/factory_service/factory_service.h View 1 3 chunks +42 lines, -4 lines 0 comments Download
M services/media/factory_service/factory_service.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M services/media/factory_service/media_decoder_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M services/media/factory_service/media_decoder_impl.cc View 1 1 chunk +4 lines, -8 lines 0 comments Download
M services/media/factory_service/media_demux_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M services/media/factory_service/media_demux_impl.cc View 6 chunks +5 lines, -8 lines 0 comments Download
M services/media/factory_service/media_player_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M services/media/factory_service/media_player_impl.cc View 2 chunks +1 line, -4 lines 0 comments Download
M services/media/factory_service/media_sink_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M services/media/factory_service/media_sink_impl.cc View 2 chunks +2 lines, -12 lines 0 comments Download
M services/media/factory_service/media_source_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M services/media/factory_service/media_source_impl.cc View 8 chunks +7 lines, -11 lines 0 comments Download
M services/media/factory_service/network_reader_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M services/media/factory_service/network_reader_impl.cc View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
dalesat
Please take a look. Thanks!
4 years, 7 months ago (2016-05-05 20:00:10 UTC) #3
kulakowski
On 2016/05/05 20:00:10, dalesat wrote: > Please take a look. Thanks! What is the difference ...
4 years, 7 months ago (2016-05-05 21:36:30 UTC) #4
kulakowski
So yeah. The functional change is awesome. A better name for Abort() and you're golden. ...
4 years, 7 months ago (2016-05-05 21:46:19 UTC) #5
dalesat
https://codereview.chromium.org/1945903006/diff/1/services/media/factory_service/factory_service.h File services/media/factory_service/factory_service.h (right): https://codereview.chromium.org/1945903006/diff/1/services/media/factory_service/factory_service.h#newcode120 services/media/factory_service/factory_service.h:120: Abort(); \ On 2016/05/05 21:46:18, kulakowski wrote: > Ah. ...
4 years, 7 months ago (2016-05-05 22:41:06 UTC) #6
kulakowski
lgtm
4 years, 7 months ago (2016-05-05 22:42:53 UTC) #7
dalesat
4 years, 7 months ago (2016-05-05 22:53:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
bfa19c495748f4fa4e6b616ba42e1d11b9006600 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698