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

Issue 1240283002: Implementation of the device attributes API. (Closed)

Created:
5 years, 5 months ago by Polina Bondarenko
Modified:
5 years, 4 months ago
CC:
Andrew T Wilson (Slow), chromium-apps-reviews_chromium.org, chromium-reviews, davemoore+watch_chromium.org, extensions-reviews_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@extension_api
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implementation of the device attributes API. chrome.enterprise.DeviceAttributes.getDirectoryDeviceId(). An API to allow extensions to get the cloud directory API device Id. BUG=502330 Committed: https://crrev.com/97b25ca5565f00404e32f4b3215d207b3a79399b Cr-Commit-Position: refs/heads/master@{#342331}

Patch Set 1 : #

Total comments: 32

Patch Set 2 : Fixed comments. #

Patch Set 3 : Added OWNERS file, removed permission tests. #

Total comments: 14

Patch Set 4 : Fixed comments. #

Patch Set 5 : Rebased patch. #

Total comments: 2

Patch Set 6 : Fixed comments. #

Patch Set 7 : Fixed build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -227 lines) Patch
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/enterprise_device_attributes/OWNERS View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_apitest.cc View 1 2 3 4 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/templates/intros/enterprise_deviceAttributes.html View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/templates/public/extensions/enterprise_deviceAttributes.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 chunks +109 lines, -226 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
Polina Bondarenko
Hi Christoph, please take a look at this Extension API.
5 years, 5 months ago (2015-07-20 14:34:42 UTC) #4
Polina Bondarenko
Hi, there is implementation of the device attributes API. The new Extension API proposal can ...
5 years, 5 months ago (2015-07-22 14:38:05 UTC) #6
not at google - send to devlin
> kalman@chromium.org: Please review changes in > chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h > chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc > chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_apitest.cc Could you put ...
5 years, 5 months ago (2015-07-22 16:21:09 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/1240283002/diff/40001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/1240283002/diff/40001/chrome/common/extensions/api/_permission_features.json#newcode349 chrome/common/extensions/api/_permission_features.json:349: "component_extensions_auto_granted": false, Why do you need this? (I mean, ...
5 years, 5 months ago (2015-07-22 16:22:53 UTC) #8
pneubeck (no reviews)
https://codereview.chromium.org/1240283002/diff/40001/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc File chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc (right): https://codereview.chromium.org/1240283002/diff/40001/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc#newcode51 chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc:51: std::string directoryDeviceId = GetDirectoryDeviceId(browser_context()); s/directoryDeviceId/directory_device_id/ s/std::string/const std::string/ https://codereview.chromium.org/1240283002/diff/40001/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc#newcode52 chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc:52: ...
5 years, 5 months ago (2015-07-23 12:53:22 UTC) #9
Polina Bondarenko
Fixed comments, added a couple browser tests. https://codereview.chromium.org/1240283002/diff/40001/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc File chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc (right): https://codereview.chromium.org/1240283002/diff/40001/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc#newcode51 chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.cc:51: std::string directoryDeviceId ...
5 years, 5 months ago (2015-07-24 16:47:59 UTC) #11
Polina Bondarenko
isherman@chromium.org: Please review changes in extensions/browser/extension_function_histogram_value.h tools/metrics/histograms/histograms.xml
5 years, 4 months ago (2015-07-29 09:47:56 UTC) #13
Ilya Sherman
histograms lgtm
5 years, 4 months ago (2015-08-03 22:25:15 UTC) #14
pneubeck (no reviews)
lgtm only a few minor nits https://codereview.chromium.org/1240283002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h (right): https://codereview.chromium.org/1240283002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h#newcode71 chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h:71: // Returns the ...
5 years, 4 months ago (2015-08-05 12:19:20 UTC) #15
Polina Bondarenko
Fixed the last pneubeck@'s comments. https://codereview.chromium.org/1240283002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h (right): https://codereview.chromium.org/1240283002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h#newcode71 chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h:71: // Returns the cloud ...
5 years, 4 months ago (2015-08-05 14:15:12 UTC) #16
not at google - send to devlin
lgtm https://codereview.chromium.org/1240283002/diff/160001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/1240283002/diff/160001/chrome/common/extensions/api/_permission_features.json#newcode352 chrome/common/extensions/api/_permission_features.json:352: "extension_types": ["extension", "legacy_packaged_app", "platform_app"], Let's remove legacy_packaged_app. Nobody ...
5 years, 4 months ago (2015-08-05 15:52:24 UTC) #18
not at google - send to devlin
btw please file that bug I mentioned with generating the policy documentation.
5 years, 4 months ago (2015-08-05 15:52:52 UTC) #19
Polina Bondarenko
thakis@chromium.org: Please review changes in chrome/test/BUILD.gn This extension API works only on Chrome OS, that's ...
5 years, 4 months ago (2015-08-06 11:24:55 UTC) #22
Polina Bondarenko
jochen@chromium.org: Please review changes in chrome/test/BUILD.gn This extension API works only on Chrome OS, that's ...
5 years, 4 months ago (2015-08-07 08:34:23 UTC) #25
jochen (gone - plz use gerrit)
lgtm
5 years, 4 months ago (2015-08-07 08:36:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240283002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1240283002/220001
5 years, 4 months ago (2015-08-07 08:46:22 UTC) #29
Polina Bondarenko
Thanks!
5 years, 4 months ago (2015-08-07 08:46:50 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:220001)
5 years, 4 months ago (2015-08-07 10:59:36 UTC) #31
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 11:00:08 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/97b25ca5565f00404e32f4b3215d207b3a79399b
Cr-Commit-Position: refs/heads/master@{#342331}

Powered by Google App Engine
This is Rietveld 408576698