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

Issue 2411033006: Display local signin error without browser and record the path of selected profile in user manager … (Closed)

Created:
4 years, 2 months ago by zmin
Modified:
4 years, 2 months ago
Reviewers:
tapted, anthonyvd, michaelpg
CC:
chrome-enterprise-changes_google.com, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Support UserManager::DisplayErrorMessage(), ShowSigninDialog() and GetSigninProfilePath(). DisplayErrorMessage() is needed to display the signin error without a browser window. ShowSigninDialog() allows fresh signin with the UserManager. GetSigninProfilePath() returns the path of selected profile after fresh signin. It was implemented for other platforms in r420713." TEST=Manual 1) Enable FormceBrowserSignin policy. 2) Launch Chrome and open UserManager. 3) Login dialog should be opened while new profile is added or the last profile is deleted. 4) Local signin error (i.e. email doesn't match RestrictSigninToPattern policy) should be displayed without browser window. BUG=642059 Committed: https://crrev.com/119da1a794947d78510019d2d66408b8aff154ce Cr-Commit-Position: refs/heads/master@{#425781}

Patch Set 1 #

Total comments: 4

Patch Set 2 : michaelpg's comments #

Total comments: 2

Patch Set 3 : tapted's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -27 lines) Patch
M chrome/browser/ui/cocoa/profiles/user_manager_mac.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac.mm View 1 2 9 chunks +50 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/profile_helper.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/signin/signin_create_profile_handler.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/signin/signin_error_ui.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 1 chunk +2 lines, -9 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
zmin
tapted@chromium.org: Please review changes in chrome/browser/ui/cocoa/profiles/* xiyuan@chromium.org: Please review changes in chrome/browser/ui/webui/*
4 years, 2 months ago (2016-10-13 16:12:07 UTC) #2
zmin
Update due to reviewer OOO: michaelpg, Can you please review: chrome/browser/ui/webui/*
4 years, 2 months ago (2016-10-13 16:18:59 UTC) #5
michaelpg
https://codereview.chromium.org/2411033006/diff/1/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm File chrome/browser/ui/cocoa/profiles/user_manager_mac.mm (right): https://codereview.chromium.org/2411033006/diff/1/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm#newcode514 chrome/browser/ui/cocoa/profiles/user_manager_mac.mm:514: instance_->DisplayErrorMessage(); but you just DCHECK'd that instance_ is null... ...
4 years, 2 months ago (2016-10-14 15:46:31 UTC) #10
zmin
https://codereview.chromium.org/2411033006/diff/1/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm File chrome/browser/ui/cocoa/profiles/user_manager_mac.mm (right): https://codereview.chromium.org/2411033006/diff/1/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm#newcode514 chrome/browser/ui/cocoa/profiles/user_manager_mac.mm:514: instance_->DisplayErrorMessage(); On 2016/10/14 15:46:31, michaelpg (OOO M-W) wrote: > ...
4 years, 2 months ago (2016-10-14 16:03:21 UTC) #11
michaelpg
lgtm
4 years, 2 months ago (2016-10-14 16:56:18 UTC) #12
anthonyvd
lgtm
4 years, 2 months ago (2016-10-14 17:05:58 UTC) #13
tapted
There's quite a lot that's wrong with user_manager_mac.mm :/ - I haven't been reviewing stuff ...
4 years, 2 months ago (2016-10-17 05:28:20 UTC) #14
tapted
On 2016/10/17 05:28:20, tapted wrote: > - It needs a TEST= line about how it's ...
4 years, 2 months ago (2016-10-17 05:29:45 UTC) #15
zmin
Thanks a lot for the review, response inline. On 2016/10/17 05:28:20, tapted wrote: > There's ...
4 years, 2 months ago (2016-10-17 19:26:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2411033006/40001
4 years, 2 months ago (2016-10-17 21:27:40 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-17 21:33:56 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 21:35:42 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/119da1a794947d78510019d2d66408b8aff154ce
Cr-Commit-Position: refs/heads/master@{#425781}

Powered by Google App Engine
This is Rietveld 408576698