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

Issue 27283002: Identity API: Add chrome.identity.onSignInChanged routing and IDL (Closed)

Created:
7 years, 2 months ago by Michael Courage
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Identity API: Add chrome.identity.onSignInChanged routing and IDL This is the first part of adding the chrome.identity.onSignInChanged event. This change creates the event in dev channel, and an event router that can dispatch sign-in events to listening extensions. A new permission, "identity.email" determines whether or not the app may be given the email address of the account associated with the user's profile. Apps without the permission still receive events, but without the email address. The code to actually generate the events will come in a future CL. BUG=305830 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229345

Patch Set 1 #

Patch Set 2 : remove unintended IdentityAPI changes #

Total comments: 14

Patch Set 3 : fix extra events due to lazy registrations and incognito #

Total comments: 4

Patch Set 4 : address code review feedback #

Patch Set 5 : less reference counting #

Patch Set 6 : AccountInfo documentation #

Total comments: 4

Patch Set 7 : address code review feedback #

Patch Set 8 : rebase to ToT #

Patch Set 9 : build fix #

Patch Set 10 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -5 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -3 lines 0 comments Download
A chrome/browser/extensions/api/identity/identity_event_router.h View 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/identity/identity_event_router.cc View 1 2 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/identity/identity_event_router_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +291 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/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/identity.idl View 6 7 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/permission_message.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Michael Courage
7 years, 2 months ago (2013-10-15 17:47:15 UTC) #1
Michael Courage
doh, a last minute "simplification" of the dispatcher introduced a bug. patch 3 fixes it.
7 years, 2 months ago (2013-10-15 22:16:38 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/27283002/diff/3001/chrome/browser/extensions/api/identity/identity_event_router.cc File chrome/browser/extensions/api/identity/identity_event_router.cc (right): https://codereview.chromium.org/27283002/diff/3001/chrome/browser/extensions/api/identity/identity_event_router.cc#newcode28 chrome/browser/extensions/api/identity/identity_event_router.cc:28: ExtensionSystem::Get(profile_)->extension_service(); ExtensionSystem::Get(profile_) being used twice. Save reference to it? ...
7 years, 2 months ago (2013-10-16 16:49:36 UTC) #3
Michael Courage
https://codereview.chromium.org/27283002/diff/3001/chrome/browser/extensions/api/identity/identity_event_router.cc File chrome/browser/extensions/api/identity/identity_event_router.cc (right): https://codereview.chromium.org/27283002/diff/3001/chrome/browser/extensions/api/identity/identity_event_router.cc#newcode28 chrome/browser/extensions/api/identity/identity_event_router.cc:28: ExtensionSystem::Get(profile_)->extension_service(); On 2013/10/16 16:49:37, kalman wrote: > ExtensionSystem::Get(profile_) being ...
7 years, 2 months ago (2013-10-16 20:24:52 UTC) #4
not at google - send to devlin
lgtm https://codereview.chromium.org/27283002/diff/24001/chrome/browser/extensions/api/identity/identity_event_router.cc File chrome/browser/extensions/api/identity/identity_event_router.cc (right): https://codereview.chromium.org/27283002/diff/24001/chrome/browser/extensions/api/identity/identity_event_router.cc#newcode55 chrome/browser/extensions/api/identity/identity_event_router.cc:55: account_info.email.reset(info_email.get()); seems just as valid to use &email ...
7 years, 2 months ago (2013-10-16 20:36:00 UTC) #5
not at google - send to devlin
Oh, re "identity.email" - yes that string seems fine to me.
7 years, 2 months ago (2013-10-16 20:36:22 UTC) #6
Michael Courage
https://codereview.chromium.org/27283002/diff/24001/chrome/browser/extensions/api/identity/identity_event_router.cc File chrome/browser/extensions/api/identity/identity_event_router.cc (right): https://codereview.chromium.org/27283002/diff/24001/chrome/browser/extensions/api/identity/identity_event_router.cc#newcode55 chrome/browser/extensions/api/identity/identity_event_router.cc:55: account_info.email.reset(info_email.get()); On 2013/10/16 20:36:01, kalman wrote: > seems just ...
7 years, 2 months ago (2013-10-16 21:18:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/27283002/36001
7 years, 2 months ago (2013-10-17 01:53:34 UTC) #8
commit-bot: I haz the power
Failed to apply patch for chrome/common/extensions/permissions/api_permission.h: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years, 2 months ago (2013-10-17 01:53:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/27283002/42001
7 years, 2 months ago (2013-10-17 18:35:56 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-17 22:07:25 UTC) #11
Michael Courage
build fix
7 years, 2 months ago (2013-10-18 02:13:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/27283002/102001
7 years, 2 months ago (2013-10-18 02:23:24 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-18 10:17:05 UTC) #14
Message was sent while issue was closed.
Change committed as 229345

Powered by Google App Engine
This is Rietveld 408576698