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

Issue 22706006: Implementation of the DeviceInfo get API. (Closed)

Created:
7 years, 4 months ago by lipalani1
Modified:
7 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Implementation of DeviceInfo API (get). The API is not yet exposed the dev channel(the permission and manifest entries are missing) Nicolas - would you mind reviewing the device_info.cc and pss_mock changes. In DeviceInfo the changes are to make the tovalue method consistent with the API docs. However there still remains some work particularly for ios devices which are marked as todo and if you are OK with it we will do it as a seperate review. Matt - Please review the rest. BUG=170375 R=mpcomplete@chromium.org, zea@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218087 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218374

Patch Set 1 #

Patch Set 2 : Self reveiw #

Patch Set 3 : For review. #

Total comments: 22

Patch Set 4 : For review. #

Patch Set 5 : For review. #

Patch Set 6 : For review. #

Total comments: 4

Patch Set 7 : For review. #

Patch Set 8 : For try runs. #

Patch Set 9 : For try jobs. #

Patch Set 10 : for try jobs #

Patch Set 11 : For try run #

Patch Set 12 : #

Patch Set 13 : for try jobs #

Total comments: 1

Patch Set 14 : For try runs #

Patch Set 15 : For try jobs #

Patch Set 16 : For try jobs #

Patch Set 17 : For try runs. #

Patch Set 18 : try runs #

Patch Set 19 : For try runs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -34 lines) Patch
M chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h View 1 2 3 4 5 6 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc View 1 2 3 4 5 6 4 chunks +34 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/signedin_devices/signedin_devices_api_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +136 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/device_info.cc View 1 2 3 2 chunks +28 lines, -14 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 2 3 4 5 6 10 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/signedin_devices.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
lipalani1
7 years, 4 months ago (2013-08-09 22:44:06 UTC) #1
Nicolas Zea
sync lgtm https://codereview.chromium.org/22706006/diff/5001/chrome/browser/sync/glue/device_info.cc File chrome/browser/sync/glue/device_info.cc (right): https://codereview.chromium.org/22706006/diff/5001/chrome/browser/sync/glue/device_info.cc#newcode72 chrome/browser/sync/glue/device_info.cc:72: // TODO(lipalani): Add support for ios phones ...
7 years, 4 months ago (2013-08-10 00:49:20 UTC) #2
Matt Perry
https://codereview.chromium.org/22706006/diff/5001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc File chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc (right): https://codereview.chromium.org/22706006/diff/5001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc#newcode96 chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc:96: if (is_local == true) { don't compare to true/false. ...
7 years, 4 months ago (2013-08-12 22:21:01 UTC) #3
lipalani1
Matt - PTAL https://codereview.chromium.org/22706006/diff/5001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc File chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc (right): https://codereview.chromium.org/22706006/diff/5001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc#newcode96 chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc:96: if (is_local == true) { On ...
7 years, 4 months ago (2013-08-13 22:42:37 UTC) #4
Matt Perry
https://codereview.chromium.org/22706006/diff/29001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc File chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc (right): https://codereview.chromium.org/22706006/diff/29001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc#newcode51 chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc:51: ScopedVector<DeviceInfo> GetAllSignedInDevices( this file uses 2 words for "signed ...
7 years, 4 months ago (2013-08-13 23:01:38 UTC) #5
lipalani1
PTAL. https://codereview.chromium.org/22706006/diff/29001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc File chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc (right): https://codereview.chromium.org/22706006/diff/29001/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc#newcode51 chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc:51: ScopedVector<DeviceInfo> GetAllSignedInDevices( On 2013/08/13 23:01:38, Matt Perry wrote: ...
7 years, 4 months ago (2013-08-13 23:36:16 UTC) #6
Matt Perry
lgtm
7 years, 4 months ago (2013-08-14 00:03:38 UTC) #7
lipalani
Matt - Ever since I added chrome/extensions/docs/**templates/public/extensions/signedin_devices.html, When I try to upload(using git-cl upload) I ...
7 years, 4 months ago (2013-08-14 19:38:58 UTC) #8
Matt Perry
Not sure what's happening. How about you check in the .html file in a followup ...
7 years, 4 months ago (2013-08-14 19:48:00 UTC) #9
lipalani
sure i can do that. On Wed, Aug 14, 2013 at 12:48 PM, <mpcomplete@chromium.org> wrote: ...
7 years, 4 months ago (2013-08-14 20:36:04 UTC) #10
dharcourt
If there's any chance to do that, I would highly recommend changing signedinDevices to signedInDevices ...
7 years, 4 months ago (2013-08-15 22:12:04 UTC) #11
Matt Perry
https://codereview.chromium.org/22706006/diff/5001/chrome/common/extensions/api/signedin_devices.idl File chrome/common/extensions/api/signedin_devices.idl (right): https://codereview.chromium.org/22706006/diff/5001/chrome/common/extensions/api/signedin_devices.idl#newcode8 chrome/common/extensions/api/signedin_devices.idl:8: namespace signedinDevices { On 2013/08/15 22:12:04, dharcourt wrote: > ...
7 years, 4 months ago (2013-08-15 22:25:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/22706006/69001
7 years, 4 months ago (2013-08-15 22:38:49 UTC) #13
lipalani1
On 2013/08/15 22:25:19, Matt Perry wrote: > https://codereview.chromium.org/22706006/diff/5001/chrome/common/extensions/api/signedin_devices.idl > File chrome/common/extensions/api/signedin_devices.idl (right): > > https://codereview.chromium.org/22706006/diff/5001/chrome/common/extensions/api/signedin_devices.idl#newcode8 ...
7 years, 4 months ago (2013-08-15 22:40:29 UTC) #14
lipalani
also FWIW I am pretty sure CQ would fail :) and I will have to ...
7 years, 4 months ago (2013-08-15 22:45:33 UTC) #15
Matt Perry
On 2013/08/15 22:40:29, lipalani1 wrote: > On 2013/08/15 22:25:19, Matt Perry wrote: > > > ...
7 years, 4 months ago (2013-08-15 22:47:25 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=160569
7 years, 4 months ago (2013-08-15 23:10:56 UTC) #17
lipalani1
Committed patchset #13 manually as r218087 (presubmit successful).
7 years, 4 months ago (2013-08-16 21:09:00 UTC) #18
not at google - send to devlin
https://codereview.chromium.org/22706006/diff/103001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/22706006/diff/103001/chrome/common/extensions/api/_api_features.json#newcode472 chrome/common/extensions/api/_api_features.json:472: }. This should be a , not a . ...
7 years, 4 months ago (2013-08-16 22:03:47 UTC) #19
tim (not reviewing)
On 2013/08/16 22:03:47, kalman wrote: > https://codereview.chromium.org/22706006/diff/103001/chrome/common/extensions/api/_api_features.json > File chrome/common/extensions/api/_api_features.json (right): > > https://codereview.chromium.org/22706006/diff/103001/chrome/common/extensions/api/_api_features.json#newcode472 > ...
7 years, 4 months ago (2013-08-16 22:19:39 UTC) #20
lipalani1
On 2013/08/16 22:19:39, timsteele wrote: > On 2013/08/16 22:03:47, kalman wrote: > > > https://codereview.chromium.org/22706006/diff/103001/chrome/common/extensions/api/_api_features.json ...
7 years, 4 months ago (2013-08-16 22:40:07 UTC) #21
lipalani1
Committed patchset #19 manually as r218374 (presubmit successful).
7 years, 4 months ago (2013-08-20 01:04:35 UTC) #22
not at google - send to devlin
On 2013/08/20 01:04:35, lipalani1 wrote: > Committed patchset #19 manually as r218374 (presubmit successful). Please ...
7 years, 4 months ago (2013-08-20 22:25:32 UTC) #23
not at google - send to devlin
and please add documentation.
7 years, 4 months ago (2013-08-20 23:12:34 UTC) #24
not at google - send to devlin
and your changes to _api_features.json have gone. This API won't work. I think this API ...
7 years, 4 months ago (2013-08-21 00:27:14 UTC) #25
lipalani
7 years, 4 months ago (2013-08-21 23:28:58 UTC) #26
Ben - I checked in the idl files and the implementation to unblock Kristen.

(I also updated the issue description, before committing, to say it is not
yet exposed to the dev channel).

I have 3 cls in pipeline:
1. Finish the plumbing necessary to do device info change notifications.
2. Renamed signedin to signed_in
3. add the permissions back and a sample extension.

Hopefully this answers your qn.
thanks!


On Tue, Aug 20, 2013 at 5:27 PM, <kalman@chromium.org> wrote:

> and your changes to _api_features.json have gone. This API won't work.
>
> I think this API needs a sample extension.
>
>
https://codereview.chromium.**org/22706006/<https://codereview.chromium.org/2...
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698