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

Issue 15780020: Setup Sync to use OAuth token for managed users. (Closed)

Created:
7 years, 6 months ago by Bernhard Bauer
Modified:
7 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, akalin, Raghu Simha, pam+watch_chromium.org, haitaol1, pavely, rlarocque
Base URL:
http://git.chromium.org/chromium/src.git@issue226464a
Visibility:
Public.

Description

Setup Sync to use OAuth token for managed users. BUG=226464 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207501

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : sync #

Total comments: 8

Patch Set 4 : review #

Total comments: 2

Patch Set 5 : fix #

Patch Set 6 : sync #

Patch Set 7 : sync #

Total comments: 3

Patch Set 8 : fix #

Patch Set 9 : review #

Total comments: 2

Patch Set 10 : invalidation #

Total comments: 6

Patch Set 11 : review #

Patch Set 12 : review #

Patch Set 13 : . #

Total comments: 2

Patch Set 14 : fix #

Patch Set 15 : fix #

Patch Set 16 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -52 lines) Patch
M chrome/browser/managed_mode/managed_user_refresh_token_fetcher.cc View 1 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_service.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +58 lines, -13 lines 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -1 line 1 comment Download
A chrome/browser/sync/glue/dummy_invalidator.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/dummy_invalidator.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +45 lines, -28 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/gaia/gaia_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gaia/gaia_constants.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Bernhard Bauer
Please review. Tim: Sync/GAIA constants Joao: Cloud policy Thanks!
7 years, 6 months ago (2013-06-12 14:30:06 UTC) #1
Bernhard Bauer
Oh yes, note that this depends on Pavel's https://codereview.chromium.org/15421011/.
7 years, 6 months ago (2013-06-12 14:30:46 UTC) #2
Joao da Silva
https://codereview.chromium.org/15780020/diff/45001/chrome/browser/policy/cloud/user_policy_signin_service.cc File chrome/browser/policy/cloud/user_policy_signin_service.cc (right): https://codereview.chromium.org/15780020/diff/45001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode13 chrome/browser/policy/cloud/user_policy_signin_service.cc:13: #include "chrome/browser/managed_mode/managed_user_service.h" #ifdef managed mode https://codereview.chromium.org/15780020/diff/45001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode232 chrome/browser/policy/cloud/user_policy_signin_service.cc:232: The managed ...
7 years, 6 months ago (2013-06-12 15:30:29 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/15780020/diff/45001/chrome/browser/policy/cloud/user_policy_signin_service.cc File chrome/browser/policy/cloud/user_policy_signin_service.cc (right): https://codereview.chromium.org/15780020/diff/45001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode13 chrome/browser/policy/cloud/user_policy_signin_service.cc:13: #include "chrome/browser/managed_mode/managed_user_service.h" On 2013/06/12 15:30:29, Joao da Silva wrote: ...
7 years, 6 months ago (2013-06-12 19:01:39 UTC) #4
Joao da Silva
lgtm to unblock you, but why did you move the IsManagedProfile check just a bit ...
7 years, 6 months ago (2013-06-12 19:56:13 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/15780020/diff/50001/chrome/browser/policy/cloud/user_policy_signin_service.cc File chrome/browser/policy/cloud/user_policy_signin_service.cc (right): https://codereview.chromium.org/15780020/diff/50001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode235 chrome/browser/policy/cloud/user_policy_signin_service.cc:235: On 2013/06/12 19:56:13, Joao da Silva wrote: > Really, ...
7 years, 6 months ago (2013-06-13 09:45:05 UTC) #6
Bernhard Bauer
Tim, can you review the Sync and GAIA constant parts?
7 years, 6 months ago (2013-06-17 12:18:47 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/15780020/diff/78001/chrome/browser/policy/cloud/user_policy_signin_service.cc File chrome/browser/policy/cloud/user_policy_signin_service.cc (right): https://codereview.chromium.org/15780020/diff/78001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode237 chrome/browser/policy/cloud/user_policy_signin_service.cc:237: if (ManagedUserService::ProfileIsManaged(profile_)) Hm, turns out this doesn't work with ...
7 years, 6 months ago (2013-06-17 14:23:53 UTC) #8
Joao da Silva
https://codereview.chromium.org/15780020/diff/78001/chrome/browser/policy/cloud/user_policy_signin_service.cc File chrome/browser/policy/cloud/user_policy_signin_service.cc (right): https://codereview.chromium.org/15780020/diff/78001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode237 chrome/browser/policy/cloud/user_policy_signin_service.cc:237: if (ManagedUserService::ProfileIsManaged(profile_)) On 2013/06/17 14:23:53, Bernhard Bauer wrote: > ...
7 years, 6 months ago (2013-06-17 14:26:02 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/15780020/diff/78001/chrome/browser/policy/cloud/user_policy_signin_service.cc File chrome/browser/policy/cloud/user_policy_signin_service.cc (right): https://codereview.chromium.org/15780020/diff/78001/chrome/browser/policy/cloud/user_policy_signin_service.cc#newcode237 chrome/browser/policy/cloud/user_policy_signin_service.cc:237: if (ManagedUserService::ProfileIsManaged(profile_)) On 2013/06/17 14:26:02, Joao da Silva wrote: ...
7 years, 6 months ago (2013-06-17 14:36:10 UTC) #10
tim (not reviewing)
+Pavel is a good reviewer for this code (I'm also sheriff today so it should ...
7 years, 6 months ago (2013-06-17 18:10:21 UTC) #11
pavely
https://codereview.chromium.org/15780020/diff/91001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/15780020/diff/91001/chrome/browser/sync/profile_sync_service.cc#newcode1936 chrome/browser/sync/profile_sync_service.cc:1936: Currently access token is passed to both sync server ...
7 years, 6 months ago (2013-06-17 22:36:30 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/15780020/diff/91001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/15780020/diff/91001/chrome/browser/sync/profile_sync_service.cc#newcode1936 chrome/browser/sync/profile_sync_service.cc:1936: On 2013/06/17 22:36:31, pavely wrote: > Currently access token ...
7 years, 6 months ago (2013-06-18 13:44:35 UTC) #13
pavely
https://codereview.chromium.org/15780020/diff/102001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://codereview.chromium.org/15780020/diff/102001/chrome/browser/sync/glue/sync_backend_host.cc#newcode1275 chrome/browser/sync/glue/sync_backend_host.cc:1275: invalidator.Pass(), I thought about this, but found that SyncManagerImpl ...
7 years, 6 months ago (2013-06-18 17:31:54 UTC) #14
pavely
https://codereview.chromium.org/15780020/diff/102001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://codereview.chromium.org/15780020/diff/102001/chrome/browser/sync/glue/sync_backend_host.cc#newcode1275 chrome/browser/sync/glue/sync_backend_host.cc:1275: invalidator.Pass(), On 2013/06/18 17:31:55, pavely wrote: > I thought ...
7 years, 6 months ago (2013-06-18 17:44:14 UTC) #15
tim (not reviewing)
That, or changing the SyncManager contract to permit null Invalidators, with careful null-checking everywhere in ...
7 years, 6 months ago (2013-06-18 19:08:49 UTC) #16
Bernhard Bauer
On 2013/06/18 19:08:49, timsteele wrote: > That, or changing the SyncManager contract to permit null ...
7 years, 6 months ago (2013-06-18 19:11:40 UTC) #17
rlarocque
In addition to my comments, I think I should mention that there is an alternative ...
7 years, 6 months ago (2013-06-18 20:05:12 UTC) #18
Bernhard Bauer
Updated the CL, also to wait for sync initialization before configuring sync data types in ...
7 years, 6 months ago (2013-06-18 20:59:22 UTC) #19
pavely
lgtm
7 years, 6 months ago (2013-06-18 21:04:55 UTC) #20
tim (not reviewing)
https://codereview.chromium.org/15780020/diff/118002/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://codereview.chromium.org/15780020/diff/118002/chrome/browser/sync/glue/sync_backend_host.cc#newcode1266 chrome/browser/sync/glue/sync_backend_host.cc:1266: invalidator.reset(new DummyInvalidator()); Can't this conditional construction type be computed ...
7 years, 6 months ago (2013-06-18 21:10:04 UTC) #21
Bernhard Bauer
https://codereview.chromium.org/15780020/diff/118002/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://codereview.chromium.org/15780020/diff/118002/chrome/browser/sync/glue/sync_backend_host.cc#newcode1266 chrome/browser/sync/glue/sync_backend_host.cc:1266: invalidator.reset(new DummyInvalidator()); On 2013/06/18 21:10:04, timsteele wrote: > Can't ...
7 years, 6 months ago (2013-06-18 21:21:29 UTC) #22
tim (not reviewing)
On 2013/06/18 21:21:29, Bernhard Bauer wrote: > https://codereview.chromium.org/15780020/diff/118002/chrome/browser/sync/glue/sync_backend_host.cc > File chrome/browser/sync/glue/sync_backend_host.cc (right): > > https://codereview.chromium.org/15780020/diff/118002/chrome/browser/sync/glue/sync_backend_host.cc#newcode1266 ...
7 years, 6 months ago (2013-06-18 21:36:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/15780020/133001
7 years, 6 months ago (2013-06-18 22:17:07 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-18 22:49:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/15780020/144002
7 years, 6 months ago (2013-06-19 06:16:11 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=139989
7 years, 6 months ago (2013-06-19 08:22:02 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/15780020/156001
7 years, 6 months ago (2013-06-19 14:36:37 UTC) #28
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-19 14:44:51 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/15780020/156001
7 years, 6 months ago (2013-06-19 16:40:14 UTC) #30
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-19 16:44:01 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/15780020/156001
7 years, 6 months ago (2013-06-20 11:57:16 UTC) #32
commit-bot: I haz the power
Change committed as 207501
7 years, 6 months ago (2013-06-20 18:37:58 UTC) #33
Andrew T Wilson (Slow)
7 years, 6 months ago (2013-06-20 20:54:43 UTC) #34
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/15780020/diff/156001/chrome/browser/po...
File chrome/browser/policy/cloud/user_policy_signin_service.cc (right):

https://chromiumcodereview.appspot.com/15780020/diff/156001/chrome/browser/po...
chrome/browser/policy/cloud/user_policy_signin_service.cc:372: if
(ManagedUserService::ProfileIsManaged(profile_)) {
I would have liked to have seen a comment for what this code is doing (why not
put this code up in the constructor instead and avoid registering for things in
the first place)? Putting it here is fragile as someone may register as an
observer for other classes (such as OAuth2TokenService) and won't handle the
case of a managed profile.

Powered by Google App Engine
This is Rietveld 408576698