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

Issue 179843002: Make invalidations work for Chrome OS Kiosk Apps. (Closed)

Created:
6 years, 10 months ago by Mattias Nissler (ping if slow)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, bartfab (slow)
Visibility:
Public.

Description

Make invalidations work for Chrome OS Kiosk Apps. Kiosk Apps don't have a user logged in, so SigninManager and ProfileOAuth2TokenService don't work. However, Kiosk Apps have access to a device-level robot account for identity. Wire this up with the invalidation code by breaking out the authentication-related pieces into a separate interface and providing implementations both for the regular Profile case as well as Kiosk Apps. The appropriate implementation gets selected by InvalidationServiceFactory. BUG=chromium:269455 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258522 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258623

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase, adjust tests. #

Patch Set 4 : Rebase #

Patch Set 5 : Some cleanup. #

Patch Set 6 : Rebase. #

Total comments: 15

Patch Set 7 : Fix sync tests #

Total comments: 2

Patch Set 8 : Address comments, fix Android build. #

Patch Set 9 : Fix tests. #

Patch Set 10 : Android fixes. #

Patch Set 11 : Rebase. #

Total comments: 4

Patch Set 12 : Restore TestingProfile boilerplate in gcm_invalidation_bridge_unittest.cc #

Total comments: 4

Patch Set 13 : Address dcheng's comments #

Patch Set 14 : Rebase. #

Patch Set 15 : Fix merge error leading to uninitialized memory access. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+519 lines, -151 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +23 lines, -26 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
A chrome/browser/invalidation/device_invalidation_auth_provider_chromeos.h View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/invalidation/device_invalidation_auth_provider_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/fake_invalidation_service.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/fake_invalidation_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/gcm_invalidation_bridge.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/invalidation/gcm_invalidation_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +16 lines, -30 lines 0 comments Download
M chrome/browser/invalidation/gcm_invalidation_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +27 lines, -2 lines 0 comments Download
A chrome/browser/invalidation/invalidation_auth_provider.h View 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/invalidation/invalidation_auth_provider.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +36 lines, -13 lines 0 comments Download
M chrome/browser/invalidation/p2p_invalidation_service.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/invalidation/p2p_invalidation_service.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -1 line 0 comments Download
A chrome/browser/invalidation/profile_invalidation_auth_provider.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/invalidation/profile_invalidation_auth_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +42 lines, -49 lines 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Mattias Nissler (ping if slow)
Folks, here's an initial stab at breaking the currently rather strong ties between the chrome/browser/invalidation ...
6 years, 10 months ago (2014-02-25 13:26:35 UTC) #1
rlarocque
+Pavel This may be relevant to the componentization efforts. It looks like this change is ...
6 years, 10 months ago (2014-02-25 18:29:08 UTC) #2
Mattias Nissler (ping if slow)
Sounds like I'm not totally off track then ;) Pavel, let me know your thoughts ...
6 years, 10 months ago (2014-02-26 09:47:08 UTC) #3
pavely
On 2014/02/26 09:47:08, Mattias Nissler wrote: > Sounds like I'm not totally off track then ...
6 years, 10 months ago (2014-02-27 02:34:55 UTC) #4
Mattias Nissler (ping if slow)
On 2014/02/27 02:34:55, pavely wrote: > On 2014/02/26 09:47:08, Mattias Nissler wrote: > > Sounds ...
6 years, 9 months ago (2014-02-27 09:06:15 UTC) #5
Mattias Nissler (ping if slow)
This is now ready for reviewing. Please take a look.
6 years, 9 months ago (2014-03-07 08:30:36 UTC) #6
pavely
LGTM with nits. I'm not a commiter, you'll need to get somebody else's lgtm. https://codereview.chromium.org/179843002/diff/90001/chrome/browser/invalidation/invalidation_auth_provider.h ...
6 years, 9 months ago (2014-03-07 23:43:28 UTC) #7
Mattias Nissler (ping if slow)
Thanks for the review. rlarocque, dcheng, can you take a look? https://codereview.chromium.org/179843002/diff/90001/chrome/browser/invalidation/invalidation_auth_provider.h File chrome/browser/invalidation/invalidation_auth_provider.h (right): ...
6 years, 9 months ago (2014-03-08 01:30:07 UTC) #8
rlarocque
lgtm
6 years, 9 months ago (2014-03-08 01:36:38 UTC) #9
pavely
https://codereview.chromium.org/179843002/diff/90001/chrome/browser/invalidation/invalidation_auth_provider.h File chrome/browser/invalidation/invalidation_auth_provider.h (right): https://codereview.chromium.org/179843002/diff/90001/chrome/browser/invalidation/invalidation_auth_provider.h#newcode45 chrome/browser/invalidation/invalidation_auth_provider.h:45: InvalidationAuthProvider(); On 2014/03/08 01:30:07, Mattias Nissler wrote: > On ...
6 years, 9 months ago (2014-03-08 23:35:17 UTC) #10
Mattias Nissler (ping if slow)
bartfab@ to CC dcheng@: Do you have input on this? Status on this is that ...
6 years, 9 months ago (2014-03-18 11:25:08 UTC) #11
Mattias Nissler (ping if slow)
+fgorski for chrome/browser/services/gcm +yoz for chrome/browser/extensions/api/push_messaging because dcheng@ is unresponsive I've rebased and tested that ...
6 years, 9 months ago (2014-03-20 13:58:33 UTC) #12
fgorski
jianli@ will take care of the gcm_profile_service.
6 years, 9 months ago (2014-03-20 16:34:07 UTC) #13
jianli
https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode546 chrome/browser/services/gcm/gcm_profile_service.cc:546: DCHECK(!profile || !profile->IsOffTheRecord()); GCMProfileService depends on profile. Even you ...
6 years, 9 months ago (2014-03-20 16:47:30 UTC) #14
Mattias Nissler (ping if slow)
https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode546 chrome/browser/services/gcm/gcm_profile_service.cc:546: DCHECK(!profile || !profile->IsOffTheRecord()); On 2014/03/20 16:47:30, jianli wrote: > ...
6 years, 9 months ago (2014-03-20 16:51:25 UTC) #15
jianli
https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode546 chrome/browser/services/gcm/gcm_profile_service.cc:546: DCHECK(!profile || !profile->IsOffTheRecord()); On 2014/03/20 16:51:26, Mattias Nissler wrote: ...
6 years, 9 months ago (2014-03-20 16:56:28 UTC) #16
Mattias Nissler (ping if slow)
https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/179843002/diff/190001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode546 chrome/browser/services/gcm/gcm_profile_service.cc:546: DCHECK(!profile || !profile->IsOffTheRecord()); On 2014/03/20 16:56:28, jianli wrote: > ...
6 years, 9 months ago (2014-03-20 17:07:37 UTC) #17
Mattias Nissler (ping if slow)
OK, new version is up. chrome/browser/services/gcm is no longer part of the CL.
6 years, 9 months ago (2014-03-20 17:24:18 UTC) #18
dcheng
https://codereview.chromium.org/179843002/diff/210001/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc File chrome/browser/extensions/api/push_messaging/push_messaging_api.cc (right): https://codereview.chromium.org/179843002/diff/210001/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc#newcode14 chrome/browser/extensions/api/push_messaging/push_messaging_api.cc:14: #include "chrome/browser/browser_process.h" What is this include for? https://codereview.chromium.org/179843002/diff/210001/chrome/browser/extensions/api/push_messaging/push_messaging_api.h File ...
6 years, 9 months ago (2014-03-20 17:33:35 UTC) #19
Mattias Nissler (ping if slow)
Comments addressed. dcheng@: PTAL https://codereview.chromium.org/179843002/diff/210001/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc File chrome/browser/extensions/api/push_messaging/push_messaging_api.cc (right): https://codereview.chromium.org/179843002/diff/210001/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc#newcode14 chrome/browser/extensions/api/push_messaging/push_messaging_api.cc:14: #include "chrome/browser/browser_process.h" On 2014/03/20 17:33:36, ...
6 years, 9 months ago (2014-03-20 17:40:08 UTC) #20
dcheng
On 2014/03/20 17:40:08, Mattias Nissler wrote: > Comments addressed. > > dcheng@: PTAL > > ...
6 years, 9 months ago (2014-03-20 17:42:05 UTC) #21
xiyuan
c/b/chromeos/chrome_browser_main_chromeos.cc LGTM
6 years, 9 months ago (2014-03-20 20:07:42 UTC) #22
Mattias Nissler (ping if slow)
The CQ bit was checked by mnissler@chromium.org
6 years, 9 months ago (2014-03-20 20:08:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/179843002/230001
6 years, 9 months ago (2014-03-20 20:10:10 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 20:10:22 UTC) #25
commit-bot: I haz the power
Failed to apply patch for chrome/browser/invalidation/gcm_invalidation_bridge.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-20 20:10:22 UTC) #26
Mattias Nissler (ping if slow)
The CQ bit was checked by mnissler@chromium.org
6 years, 9 months ago (2014-03-20 21:10:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/179843002/250001
6 years, 9 months ago (2014-03-20 21:11:33 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 23:36:09 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=285541
6 years, 9 months ago (2014-03-20 23:36:10 UTC) #30
Mattias Nissler (ping if slow)
The CQ bit was checked by mnissler@chromium.org
6 years, 9 months ago (2014-03-21 09:34:34 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/179843002/250001
6 years, 9 months ago (2014-03-21 09:34:54 UTC) #32
commit-bot: I haz the power
Change committed as 258522
6 years, 9 months ago (2014-03-21 11:22:36 UTC) #33
Mattias Nissler (ping if slow)
Re-landing after revert with the line in gcm_invalidation_bridge.cc that got dropped accidentally in a merge ...
6 years, 9 months ago (2014-03-21 14:30:56 UTC) #34
Mattias Nissler (ping if slow)
The CQ bit was checked by mnissler@chromium.org
6 years, 9 months ago (2014-03-21 14:31:03 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/179843002/270001
6 years, 9 months ago (2014-03-21 14:31:28 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 15:05:11 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-21 15:05:12 UTC) #38
Mattias Nissler (ping if slow)
The CQ bit was checked by mnissler@chromium.org
6 years, 9 months ago (2014-03-21 15:21:39 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/179843002/270001
6 years, 9 months ago (2014-03-21 15:21:46 UTC) #40
commit-bot: I haz the power
6 years, 9 months ago (2014-03-21 17:46:48 UTC) #41
Message was sent while issue was closed.
Change committed as 258623

Powered by Google App Engine
This is Rietveld 408576698