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

Issue 1143303004: Add IDL and stub implementation for chrome.usersPrivate API. (Closed)

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

Description

Add IDL and stub implementation for chrome.usersPrivate API. Proposal is here: https://docs.google.com/document/d/1ucnVkZSkOyY0R7kyryyLlvNq7rkN8EyAtvE6WsCxcFY/edit#heading=h.w8inspeo32bj BUG=491369 Committed: https://crrev.com/5fbbf2ae2eba1359ae4f0d1b0737197468b27385 Cr-Commit-Position: refs/heads/master@{#332261}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : OWNERS #

Patch Set 4 : Provide a success/fail callback for addWhitelistedUser #

Patch Set 5 #

Patch Set 6 : Add a comment #

Total comments: 2

Patch Set 7 : Remove an accidental line from the externs file #

Patch Set 8 : Sync/merge changes #

Patch Set 9 : Tweak the idl slightly: return Users, not just emails. #

Total comments: 2

Patch Set 10 : Make isOwner a required field #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, --1 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/users_private/OWNERS View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/extensions/api/users_private/users_private_api.h View 1 1 chunk +107 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/users_private/users_private_api.cc View 1 2 3 4 5 6 7 8 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/users_private.idl View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_rules.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/permission_message.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/closure_compiler/externs/users_private.js View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (15 generated)
Dan Beam
https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl File chrome/common/extensions/api/users_private.idl (right): https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl#newcode11 chrome/common/extensions/api/users_private.idl:11: static void getWhitelistedUsers(DOMString[] emails); why not make this onWhiteListedUsersChanged ...
5 years, 7 months ago (2015-05-23 00:51:14 UTC) #2
Oren Blasberg
https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl File chrome/common/extensions/api/users_private.idl (right): https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl#newcode11 chrome/common/extensions/api/users_private.idl:11: static void getWhitelistedUsers(DOMString[] emails); On 2015/05/23 00:51:14, Dan Beam ...
5 years, 7 months ago (2015-05-26 17:04:07 UTC) #4
Oren Blasberg
I've added the stub implementation (methods work from js but do nothing).
5 years, 7 months ago (2015-05-26 18:24:35 UTC) #7
Mark P
histograms.xml lgtm
5 years, 7 months ago (2015-05-26 18:33:13 UTC) #8
Dan Beam
https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl File chrome/common/extensions/api/users_private.idl (right): https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl#newcode11 chrome/common/extensions/api/users_private.idl:11: static void getWhitelistedUsers(DOMString[] emails); On 2015/05/26 17:04:07, Oren Blasberg ...
5 years, 6 months ago (2015-05-28 20:09:30 UTC) #10
Ken Rockot(use gerrit already)
idl lgtm
5 years, 6 months ago (2015-05-29 14:52:35 UTC) #12
Oren Blasberg
https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl File chrome/common/extensions/api/users_private.idl (right): https://codereview.chromium.org/1143303004/diff/1/chrome/common/extensions/api/users_private.idl#newcode11 chrome/common/extensions/api/users_private.idl:11: static void getWhitelistedUsers(DOMString[] emails); On 2015/05/28 20:09:30, Dan Beam ...
5 years, 6 months ago (2015-05-29 23:48:07 UTC) #13
Dan Beam
https://codereview.chromium.org/1143303004/diff/100001/third_party/closure_compiler/externs/users_private.js File third_party/closure_compiler/externs/users_private.js (right): https://codereview.chromium.org/1143303004/diff/100001/third_party/closure_compiler/externs/users_private.js#newcode1 third_party/closure_compiler/externs/users_private.js:1: users_private_externs.js why is this here?
5 years, 6 months ago (2015-05-29 23:51:22 UTC) #14
Jeremy Klein
lgtm besides dbeam's question
5 years, 6 months ago (2015-05-30 00:06:36 UTC) #15
Oren Blasberg
https://codereview.chromium.org/1143303004/diff/100001/third_party/closure_compiler/externs/users_private.js File third_party/closure_compiler/externs/users_private.js (right): https://codereview.chromium.org/1143303004/diff/100001/third_party/closure_compiler/externs/users_private.js#newcode1 third_party/closure_compiler/externs/users_private.js:1: users_private_externs.js On 2015/05/29 23:51:22, Dan Beam wrote: > why ...
5 years, 6 months ago (2015-05-30 00:13:53 UTC) #16
Dan Beam
lgtm
5 years, 6 months ago (2015-05-30 00:15:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143303004/140001
5 years, 6 months ago (2015-05-30 00:22:11 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/71274)
5 years, 6 months ago (2015-05-30 03:08:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143303004/140001
5 years, 6 months ago (2015-06-01 16:34:19 UTC) #26
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1143303004/diff/160001/chrome/common/extensions/api/users_private.idl File chrome/common/extensions/api/users_private.idl (right): https://codereview.chromium.org/1143303004/diff/160001/chrome/common/extensions/api/users_private.idl#newcode14 chrome/common/extensions/api/users_private.idl:14: boolean? isOwner; nit: IMHO it's kind of weird ...
5 years, 6 months ago (2015-06-01 19:14:46 UTC) #28
Oren Blasberg
https://codereview.chromium.org/1143303004/diff/160001/chrome/common/extensions/api/users_private.idl File chrome/common/extensions/api/users_private.idl (right): https://codereview.chromium.org/1143303004/diff/160001/chrome/common/extensions/api/users_private.idl#newcode14 chrome/common/extensions/api/users_private.idl:14: boolean? isOwner; On 2015/06/01 19:14:45, Ken Rockot wrote: > ...
5 years, 6 months ago (2015-06-01 19:17:32 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143303004/180001
5 years, 6 months ago (2015-06-01 19:21:25 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-01 20:40:27 UTC) #33
commit-bot: I haz the power
5 years, 6 months ago (2015-06-01 20:41:24 UTC) #34
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5fbbf2ae2eba1359ae4f0d1b0737197468b27385
Cr-Commit-Position: refs/heads/master@{#332261}

Powered by Google App Engine
This is Rietveld 408576698