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

Issue 8698001: sync: change semantics (and name) of SigninManager::GetUsername (Closed)

Created:
9 years ago by tim (not reviewing)
Modified:
9 years ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

sync: change semantics (and name) of SigninManager::GetUsername This is an incremental change rolled out of a larger one to remove cros_user, and make the ProfileSyncService<Foo>Test framework easier to configure / decouple from the cros case. In the upcoming patch I'll remove cros_user and in several cases rely on SigninManager's new GetAuthenticatedUsername. Also makes it so we always initialize the signin manager, regardless of platform. Also fix a case in ProfileSyncService that calls DisableForUser when a UI error seems more appropriate. This effectively re-implements the fix for bug 103861. BUG=88109 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113412

Patch Set 1 : first #

Total comments: 14

Patch Set 2 : remove check #

Total comments: 6

Patch Set 3 : update auth #

Patch Set 4 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -102 lines) Patch
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 6 chunks +14 lines, -30 lines 1 comment Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/signin_manager.h View 5 chunks +26 lines, -11 lines 0 comments Download
M chrome/browser/sync/signin_manager.cc View 1 9 chunks +42 lines, -28 lines 0 comments Download
M chrome/browser/sync/signin_manager_unittest.cc View 1 13 chunks +33 lines, -30 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/auto_login_prompter.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
tim (not reviewing)
Ready for a peek. I may wind up waiting until I return to Seattle to ...
9 years ago (2011-11-27 07:31:22 UTC) #1
Andrew T Wilson (Slow)
http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode1439 chrome/browser/sync/profile_sync_service.cc:1439: NotifyObservers(); I'm not entirely sure why it's now OK ...
9 years ago (2011-11-28 04:54:02 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.h File chrome/browser/sync/signin_manager.h (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.h#newcode62 chrome/browser/sync/signin_manager.h:62: // If a user has previously established a username ...
9 years ago (2011-11-28 05:30:21 UTC) #3
Andrew T Wilson (Slow)
http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.h File chrome/browser/sync/signin_manager.h (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.h#newcode62 chrome/browser/sync/signin_manager.h:62: // If a user has previously established a username ...
9 years ago (2011-11-28 17:28:57 UTC) #4
tim (not reviewing)
http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode1439 chrome/browser/sync/profile_sync_service.cc:1439: NotifyObservers(); On 2011/11/28 04:54:02, Andrew T Wilson wrote: > ...
9 years ago (2011-12-05 21:24:49 UTC) #5
lipalani1
http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode1439 chrome/browser/sync/profile_sync_service.cc:1439: NotifyObservers(); I assumed this meant the following: If we ...
9 years ago (2011-12-05 21:40:44 UTC) #6
tim (not reviewing)
Agree it's very unlikely. The case you mention Lingesh doesn't seem outside of the realm ...
9 years ago (2011-12-05 21:54:50 UTC) #7
lipalani1
I reviewed my portion ! http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.cc File chrome/browser/sync/signin_manager.cc (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.cc#newcode50 chrome/browser/sync/signin_manager.cc:50: !profile_->GetTokenService()->HasTokenForService( I heard other ...
9 years ago (2011-12-05 21:56:57 UTC) #8
lipalani1
Agree on that. However NotifyObservers is not going to make the UI show there is ...
9 years ago (2011-12-05 21:59:30 UTC) #9
tim (not reviewing)
http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.cc File chrome/browser/sync/signin_manager.cc (right): http://codereview.chromium.org/8698001/diff/2001/chrome/browser/sync/signin_manager.cc#newcode50 chrome/browser/sync/signin_manager.cc:50: !profile_->GetTokenService()->HasTokenForService( On 2011/12/05 21:56:57, lipalani1 wrote: > I heard ...
9 years ago (2011-12-06 02:18:21 UTC) #10
tim (not reviewing)
PTAL Removed the HasTokensForService check in SigninManager (although my last comment @ Lingesh still stands). ...
9 years ago (2011-12-06 20:10:57 UTC) #11
Andrew T Wilson (Slow)
LGTM with a couple of questions. http://codereview.chromium.org/8698001/diff/15001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8698001/diff/15001/chrome/browser/sync/profile_sync_service.cc#newcode272 chrome/browser/sync/profile_sync_service.cc:272: credentials.email = cros_user_.empty() ...
9 years ago (2011-12-06 21:09:14 UTC) #12
tim (not reviewing)
http://codereview.chromium.org/8698001/diff/15001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8698001/diff/15001/chrome/browser/sync/profile_sync_service.cc#newcode272 chrome/browser/sync/profile_sync_service.cc:272: credentials.email = cros_user_.empty() ? On 2011/12/06 21:09:15, Andrew T ...
9 years ago (2011-12-06 21:23:47 UTC) #13
lipalani1
LGTM on my part pending fixing the last_auth_error in PSS.
9 years ago (2011-12-06 22:03:01 UTC) #14
tim (not reviewing)
Fixed auth error. Landing once try runs succeed.
9 years ago (2011-12-07 00:28:04 UTC) #15
Andrew T Wilson (Slow)
http://codereview.chromium.org/8698001/diff/16009/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8698001/diff/16009/chrome/browser/sync/profile_sync_service.cc#newcode1497 chrome/browser/sync/profile_sync_service.cc:1497: // to trigger errors in the UI that will ...
9 years ago (2011-12-07 00:50:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/8698001/16009
9 years ago (2011-12-07 05:29:24 UTC) #17
commit-bot: I haz the power
Try job failure for 8698001-16009 (retry) on win_rel for step "unit_tests". It's a second try, ...
9 years ago (2011-12-07 07:12:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/8698001/16009
9 years ago (2011-12-07 16:45:28 UTC) #19
commit-bot: I haz the power
9 years ago (2011-12-07 17:54:31 UTC) #20
Change committed as 113412

Powered by Google App Engine
This is Rietveld 408576698