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

Issue 1291113002: Cast extension private API for ChromeOS system tray. (Closed)

Created:
5 years, 4 months ago by jdufault
Modified:
5 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cast extension private API for ChromeOS system tray. Introduce cast.devicesPrivate.startCast(receiverId), cast.devicesPrivate.stopCast(reason), cast.devicesPrivate.updateDevices(devices), and cast.devicesPrivate.updateDevicesRequested(). startCast: Starts a casting session for the given receiver. The extension handles the UI for selecting what to mirror. stopCast: Terminate the active cast. updateDevices: Send the list of receivers and their activities to chrome. updateDevicesRequested: An event triggered by chrome that requests the extension to resend the list of devices. This API is used in https://codereview.chromium.org/1291113002/. This API gets tested in https://codereview.chromium.org/1287023010/. BUG=514952

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 16

Patch Set 3 : Address change requests #

Total comments: 4

Patch Set 4 : Address feedback #

Patch Set 5 : The tabId can be null #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -0 lines) Patch
A chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.h View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc View 1 2 3 4 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/cast_devices_private.idl View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_event_histogram_value.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
jdufault
Achuith and either Ken or Benjamin, would you please take a look? Thanks!
5 years, 4 months ago (2015-08-14 22:12:10 UTC) #3
Ken Rockot(use gerrit already)
generally looks good, with a few comments https://codereview.chromium.org/1291113002/diff/20001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc File chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc (right): https://codereview.chromium.org/1291113002/diff/20001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc#newcode44 chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc:44: static ash::CastConfigDelegate::Receiver ...
5 years, 4 months ago (2015-08-14 23:20:09 UTC) #4
jdufault
https://codereview.chromium.org/1291113002/diff/20001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc File chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc (right): https://codereview.chromium.org/1291113002/diff/20001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc#newcode44 chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc:44: static ash::CastConfigDelegate::Receiver ConvertType( On 2015/08/14 23:20:09, Ken Rockot wrote: ...
5 years, 4 months ago (2015-08-15 00:04:52 UTC) #5
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1291113002/diff/40001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc File chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc (right): https://codereview.chromium.org/1291113002/diff/40001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc#newcode82 chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc:82: CastDevicesPrivateUpdateDevicesFunction::Run() { nit: in this case (return type ...
5 years, 4 months ago (2015-08-15 00:07:45 UTC) #6
jdufault
Ilya, would you mind taking a look at the histogram files? I need an owners ...
5 years, 4 months ago (2015-08-15 00:19:19 UTC) #8
Ilya Sherman
histograms lgtm
5 years, 4 months ago (2015-08-17 21:14:15 UTC) #9
Ilya Sherman
Actually, one small thing: Could you please update the CL description so that the title ...
5 years, 4 months ago (2015-08-17 21:16:48 UTC) #12
jdufault
On 2015/08/17 21:16:48, Ilya Sherman wrote: > Actually, one small thing: Could you please update ...
5 years, 4 months ago (2015-08-17 22:21:21 UTC) #13
Ilya Sherman
LGTM, thanks.
5 years, 4 months ago (2015-08-17 22:24:48 UTC) #14
achuithb
https://codereview.chromium.org/1291113002/diff/40001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc File chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc (right): https://codereview.chromium.org/1291113002/diff/40001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc#newcode15 chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc:15: ash::CastConfigDelegate::Receiver ConvertType( Rename to ConvertReceiverType? I don't think there's ...
5 years, 4 months ago (2015-08-18 06:19:31 UTC) #15
achuithb
Let's flesh out the description of this bug to include the new private api calls.
5 years, 4 months ago (2015-08-18 06:20:33 UTC) #16
jdufault
I've added some more comments to the description - is that what you had in ...
5 years, 4 months ago (2015-08-18 19:53:01 UTC) #17
achuithb
On 2015/08/18 19:53:01, jdufault wrote: > I've added some more comments to the description - ...
5 years, 4 months ago (2015-08-18 22:26:12 UTC) #18
achuithb
Don't you need test code for the apis?
5 years, 4 months ago (2015-08-18 22:26:37 UTC) #19
achuithb
https://codereview.chromium.org/1291113002/diff/60001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc File chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc (right): https://codereview.chromium.org/1291113002/diff/60001/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc#newcode72 chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc:72: const CastDeviceUpdateListeners::ReceiverAndActivityList& devices) { Do you actually need CastDeviceUpdateListeners:: ...
5 years, 4 months ago (2015-08-18 22:30:14 UTC) #20
jdufault
This is tested via the Chromecast system tray item browser test. If the system tray ...
5 years, 4 months ago (2015-08-18 23:31:52 UTC) #21
achuithb
lgtm
5 years, 4 months ago (2015-08-18 23:59:31 UTC) #22
jdufault
5 years, 4 months ago (2015-08-21 19:13:36 UTC) #23

Powered by Google App Engine
This is Rietveld 408576698