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

Issue 1094103005: Profile chooser on mac was passing wrong value to signin error controller. (Closed)

Created:
5 years, 8 months ago by Roger Tawa OOO till Jul 10th
Modified:
5 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Profile chooser on mac was passing wrong value to signin error controller. At the same time, I noticed another case where an infinite spinner could happen on any platform, see fix in inline_login_handler_impl.cc. Fixed MutableProfileOAuth2TokenService to canonicalize the primary account id given to it in order to properly support loading older profiles. This could cause chrome to show an auth error even after a successful reauth. Refactored auth error providers to provide only the account id. Signin error controller should no longer care about username. BUG=476739 Committed: https://crrev.com/7470d4c05962b89ada2647e657436a6d582cb677 Cr-Commit-Position: refs/heads/master@{#327307}

Patch Set 1 : Fix ASI #

Total comments: 8

Patch Set 2 : rebased #

Patch Set 3 : Address review comments #

Patch Set 4 : Fix mac compile error #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -85 lines) Patch
M chrome/browser/app_controller_mac_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/signin_error_notifier_ash_unittest.cc View 1 6 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/signin/signin_global_error_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 5 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M components/signin/core/browser/about_signin_internals.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M components/signin/core/browser/fake_auth_status_provider.h View 2 chunks +0 lines, -3 lines 0 comments Download
M components/signin/core/browser/fake_auth_status_provider.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M components/signin/core/browser/mutable_profile_oauth2_token_service.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/signin/core/browser/mutable_profile_oauth2_token_service.cc View 2 chunks +10 lines, -8 lines 0 comments Download
M components/signin/core/browser/signin_error_controller.h View 3 chunks +0 lines, -5 lines 0 comments Download
M components/signin/core/browser/signin_error_controller.cc View 1 2 3 chunks +0 lines, -4 lines 0 comments Download
M components/signin/core/browser/signin_error_controller_unittest.cc View 9 chunks +0 lines, -15 lines 0 comments Download
M components/signin/ios/browser/profile_oauth2_token_service_ios.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/signin/ios/browser/profile_oauth2_token_service_ios.mm View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Roger Tawa OOO till Jul 10th
Hi Mike, Can you please take a look? Thanks.
5 years, 8 months ago (2015-04-24 18:27:19 UTC) #9
Roger Tawa OOO till Jul 10th
Hi Mike, Can you please take a look? Thanks.
5 years, 8 months ago (2015-04-24 18:27:45 UTC) #11
Mike Lerman
Great refactor! Not actually such a big CL. Two optional small yak shaves, if you ...
5 years, 8 months ago (2015-04-24 19:36:27 UTC) #12
Roger Tawa OOO till Jul 10th
Thanks Mike, please take another look. https://codereview.chromium.org/1094103005/diff/160001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/1094103005/diff/160001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode1999 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:1999: errorController = profiles::GetSigninErrorController(browser_->profile()); ...
5 years, 7 months ago (2015-04-27 20:32:00 UTC) #13
Mike Lerman
Great - thanks! LGTM.
5 years, 7 months ago (2015-04-27 20:38:21 UTC) #14
Roger Tawa OOO till Jul 10th
Hi Avi, Nicolas, Scott, Can you please do owner review? Avi: app_controller_mac_unittest.mm profile_chooser_controller.mm Nicolas: sync_ui_util_unittest.cc ...
5 years, 7 months ago (2015-04-27 21:23:27 UTC) #16
sky
profiler_chooser_view.cc LGTM
5 years, 7 months ago (2015-04-27 21:57:02 UTC) #17
Avi (use Gerrit)
app_controller_mac_unittest.mm lgtm
5 years, 7 months ago (2015-04-28 00:14:39 UTC) #18
Avi (use Gerrit)
profile_chooser_controller.mm lgtm too I totally missed that line, sorry!
5 years, 7 months ago (2015-04-28 14:55:44 UTC) #19
Nicolas Zea
sync lgtm
5 years, 7 months ago (2015-04-28 16:50:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094103005/240001
5 years, 7 months ago (2015-04-28 16:54:36 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:240001)
5 years, 7 months ago (2015-04-28 17:00:45 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 17:01:48 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7470d4c05962b89ada2647e657436a6d582cb677
Cr-Commit-Position: refs/heads/master@{#327307}

Powered by Google App Engine
This is Rietveld 408576698