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

Issue 1249643004: media: Quit MojoMediaApplication when no ServiceFactory service is bound. (Closed)

Created:
5 years, 5 months ago by xhwang
Modified:
5 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, jam, DaleCurtis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Quit MojoMediaApplication when no ServiceFactory service is bound. When no ServiceFactory service is bound, we'll quit the mojo media application to release resources. In particular, when we host the app in the utility process, this is needed so that the utility process can be killed when nobody needs the app/services. BUG=510657 TEST=Adds one unit test. Also manually tested when playing audio in the utility process using MojoMediaApplication. Committed: https://crrev.com/5001f4e987257e7a77147f0ed07ebc11215c3231 Cr-Commit-Position: refs/heads/master@{#340613}

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments addressed #

Total comments: 5

Patch Set 3 : comments addressed #

Total comments: 4

Patch Set 4 : comments addressed #

Patch Set 5 : rebase only #

Total comments: 1

Patch Set 6 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -16 lines) Patch
M media/mojo/services/media_apptest.cc View 1 2 3 4 5 3 chunks +19 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_media_application.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/mojo/services/mojo_media_application.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M media/mojo/services/service_factory_impl.h View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M media/mojo/services/service_factory_impl.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M mojo/application/public/cpp/application_impl.h View 1 2 3 4 4 chunks +3 lines, -3 lines 0 comments Download
M mojo/application/public/cpp/lib/application_impl.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M mojo/shell/application_instance.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
xhwang
This is an updated version of https://codereview.chromium.org/1200323003/ where the delayed app destruction part is dropped. ...
5 years, 5 months ago (2015-07-22 21:25:58 UTC) #3
Ken Rockot(use gerrit already)
lgtm
5 years, 5 months ago (2015-07-22 21:35:56 UTC) #4
sky
https://codereview.chromium.org/1249643004/diff/1/mojo/application/public/cpp/application_impl.h File mojo/application/public/cpp/application_impl.h (right): https://codereview.chromium.org/1249643004/diff/1/mojo/application/public/cpp/application_impl.h#newcode83 mojo/application/public/cpp/application_impl.h:83: // call to ApplicationConnection::CloseConnection. If |terminate_cb| is It's not ...
5 years, 5 months ago (2015-07-22 23:56:33 UTC) #5
xhwang
comments addressed
5 years, 5 months ago (2015-07-23 21:54:39 UTC) #6
xhwang
sky: PTAL again! https://codereview.chromium.org/1249643004/diff/1/mojo/application/public/cpp/application_impl.h File mojo/application/public/cpp/application_impl.h (right): https://codereview.chromium.org/1249643004/diff/1/mojo/application/public/cpp/application_impl.h#newcode83 mojo/application/public/cpp/application_impl.h:83: // call to ApplicationConnection::CloseConnection. If |terminate_cb| ...
5 years, 5 months ago (2015-07-23 21:57:15 UTC) #7
sky
https://codereview.chromium.org/1249643004/diff/20001/mojo/application/public/cpp/application_connection.h File mojo/application/public/cpp/application_connection.h (right): https://codereview.chromium.org/1249643004/diff/20001/mojo/application/public/cpp/application_connection.h#newcode105 mojo/application/public/cpp/application_connection.h:105: virtual void SetConnectionErrorHandlerForTest(const Closure& closure) = 0; Why is ...
5 years, 5 months ago (2015-07-23 23:09:21 UTC) #8
xhwang
comments addressed
5 years, 5 months ago (2015-07-23 23:35:22 UTC) #9
xhwang
sky: Thanks for the comments. PTAL again! https://codereview.chromium.org/1249643004/diff/20001/mojo/application/public/cpp/application_connection.h File mojo/application/public/cpp/application_connection.h (right): https://codereview.chromium.org/1249643004/diff/20001/mojo/application/public/cpp/application_connection.h#newcode105 mojo/application/public/cpp/application_connection.h:105: virtual void ...
5 years, 5 months ago (2015-07-23 23:36:21 UTC) #10
sky
LGTM: but wait for Ben. He was going with a slightly different name for the ...
5 years, 5 months ago (2015-07-24 15:43:14 UTC) #12
xhwang
comments addressed
5 years, 5 months ago (2015-07-24 16:40:20 UTC) #13
xhwang
Updated. Waiting for Ben's comment... https://codereview.chromium.org/1249643004/diff/40001/mojo/application/public/cpp/application_connection.h File mojo/application/public/cpp/application_connection.h (right): https://codereview.chromium.org/1249643004/diff/40001/mojo/application/public/cpp/application_connection.h#newcode103 mojo/application/public/cpp/application_connection.h:103: // Sets a connection ...
5 years, 5 months ago (2015-07-24 16:40:54 UTC) #14
Ben Goodger (Google)
On 2015/07/24 16:40:54, xhwang wrote: > Updated. Waiting for Ben's comment... > > https://codereview.chromium.org/1249643004/diff/40001/mojo/application/public/cpp/application_connection.h > ...
5 years, 5 months ago (2015-07-24 17:33:43 UTC) #15
xhwang
On 2015/07/24 17:33:43, Ben Goodger (Google) wrote: > On 2015/07/24 16:40:54, xhwang wrote: > > ...
5 years, 5 months ago (2015-07-24 17:36:42 UTC) #16
xhwang
rebase only
5 years, 5 months ago (2015-07-25 08:11:18 UTC) #17
xhwang
https://codereview.chromium.org/1249643004/diff/80001/mojo/shell/application_instance.cc File mojo/shell/application_instance.cc (right): https://codereview.chromium.org/1249643004/diff/80001/mojo/shell/application_instance.cc#newcode147 mojo/shell/application_instance.cc:147: manager->ConnectToApplication(nullptr, url.Pass(), std::string(), This fixes the crash in my ...
5 years, 5 months ago (2015-07-25 08:12:42 UTC) #18
xhwang
rebase only
5 years, 4 months ago (2015-07-27 22:21:35 UTC) #19
xhwang
Rebased and now everything is working! beng: FYI. I made some trivial fixes in mojo/shell/application_instance.cc.
5 years, 4 months ago (2015-07-27 22:26:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1249643004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1249643004/100001
5 years, 4 months ago (2015-07-27 22:41:25 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-07-28 00:13:15 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-07-28 00:14:00 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5001f4e987257e7a77147f0ed07ebc11215c3231
Cr-Commit-Position: refs/heads/master@{#340613}

Powered by Google App Engine
This is Rietveld 408576698