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

Issue 2974523002: [cast_channel] Make CastSocketService a global leaky singleton (Closed)

Created:
3 years, 5 months ago by zhaobin
Modified:
3 years, 5 months ago
Reviewers:
mark a. foltz, imcheng
CC:
avayvod+watch_chromium.org, chfremer+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jasonroberts+watch_google.com, mfoltz+watch_chromium.org, miu+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[cast_channel] Make CastSocketService a global leaky singleton - make CastSocketService a global leaky singleton and remove CastSocketServiceFactory - make CastChannelAPI and CastMediaSinkService own CastSocket::Observer - fix unit tests and browser tests BUG=687377, 725717 Review-Url: https://codereview.chromium.org/2974523002 Cr-Commit-Position: refs/heads/master@{#486886} Committed: https://chromium.googlesource.com/chromium/src/+/edc090649966c37e060d073addca425382dc4e38

Patch Set 1 #

Total comments: 9

Patch Set 2 : resolve code review comments from Derek and Mark #

Patch Set 3 : merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -231 lines) Patch
M chrome/browser/media/router/discovery/mdns/cast_media_sink_service.h View 1 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc View 1 5 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/media/router/discovery/mdns/cast_media_sink_service_unittest.cc View 1 2 chunks +3 lines, -15 lines 0 comments Download
M chrome/test/data/extensions/api_test/cast_channel/api/test_open_timeout.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/cast_channel/api/test_open_timeout_verified.js View 1 chunk +3 lines, -1 line 0 comments Download
M components/cast_channel/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M components/cast_channel/cast_socket.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/cast_channel/cast_socket.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/cast_channel/cast_socket_service.h View 1 2 4 chunks +13 lines, -23 lines 0 comments Download
M components/cast_channel/cast_socket_service.cc View 3 chunks +11 lines, -19 lines 0 comments Download
D components/cast_channel/cast_socket_service_factory.h View 1 chunk +0 lines, -46 lines 0 comments Download
D components/cast_channel/cast_socket_service_factory.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M components/cast_channel/cast_socket_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/cast_channel/cast_test_util.h View 3 chunks +15 lines, -0 lines 0 comments Download
M components/cast_channel/cast_test_util.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 4 chunks +44 lines, -31 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 6 chunks +24 lines, -18 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_apitest.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
zhaobin
3 years, 5 months ago (2017-07-06 18:56:57 UTC) #2
mark a. foltz
LGTM with one comment https://codereview.chromium.org/2974523002/diff/1/components/cast_channel/cast_socket.h File components/cast_channel/cast_socket.h (right): https://codereview.chromium.org/2974523002/diff/1/components/cast_channel/cast_socket.h#newcode133 components/cast_channel/cast_socket.h:133: // Unregisters |observer| Nit: Add ...
3 years, 5 months ago (2017-07-10 20:43:06 UTC) #3
imcheng
lgtm https://codereview.chromium.org/2974523002/diff/1/chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc File chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc (right): https://codereview.chromium.org/2974523002/diff/1/chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc#newcode92 chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc:92: cast_socket_service_ = cast_channel::CastSocketService::GetInstance(); Can this be moved into ...
3 years, 5 months ago (2017-07-11 01:31:15 UTC) #4
zhaobin
https://codereview.chromium.org/2974523002/diff/1/chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc File chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc (right): https://codereview.chromium.org/2974523002/diff/1/chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc#newcode92 chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc:92: cast_socket_service_ = cast_channel::CastSocketService::GetInstance(); On 2017/07/11 01:31:15, imcheng wrote: > ...
3 years, 5 months ago (2017-07-12 21:58:08 UTC) #5
imcheng
lgtm
3 years, 5 months ago (2017-07-13 22:51:59 UTC) #10
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/2974523002/20001
3 years, 5 months ago (2017-07-13 22:54:17 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/428667)
3 years, 5 months ago (2017-07-14 00:35:47 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/2974523002/40001
3 years, 5 months ago (2017-07-14 20:59:24 UTC) #26
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 21:06:27 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/edc090649966c37e060d073addca...

Powered by Google App Engine
This is Rietveld 408576698