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

Issue 2267013002: [MD User Menu] New way to handle supervised user auth error (Closed)

Created:
4 years, 4 months ago by Jane
Modified:
4 years, 4 months ago
Reviewers:
*maxbogue, *sky, *groby-ooo-7-16
CC:
chromium-reviews, tfarina, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD User Menu] New way to handle supervised user auth error Background: The MD user menu shows an error header when sync errors occur. For auth errors in particular, the header prompts the user to sign in again to resolve them. However, when the user is a supervised user, signing in is not an option. In this CL, we add a way to specifically handle auth errors for supervised users, which displays a different message in the error header and with no action button. Screenshot: https://drive.google.com/a/google.com/file/d/0B7Fvv7JszRyGaUtrbUNXVDBlR0k/view BUG=615893 Committed: https://crrev.com/5d85923b15015fff31fa7e187684b6dc559fe7b8 Cr-Commit-Position: refs/heads/master@{#413847}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added nullptr assignment for NULL case and rebased #

Total comments: 2

Patch Set 3 : Consolidated sync error functions #

Total comments: 2

Patch Set 4 : Consolidated sync error functions on mac too #

Total comments: 2

Patch Set 5 : Added comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -42 lines) Patch
M chrome/app/chromium_strings.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 3 chunks +19 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 3 chunks +19 lines, -18 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
Jane
Hi maxbogue@, could you take a look at c/b/sync please, thanks!
4 years, 4 months ago (2016-08-22 17:07:03 UTC) #3
maxbogue
lgtm
4 years, 4 months ago (2016-08-22 19:56:31 UTC) #4
Jane
Hi sky@, could you take a look at c/b/ui/views; and groby@, c/b/ui/cocoa please. Thanks!
4 years, 4 months ago (2016-08-22 19:58:03 UTC) #7
sky
https://codereview.chromium.org/2267013002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2267013002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1571 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1571: } Can you set button_out to null in the ...
4 years, 4 months ago (2016-08-22 20:43:23 UTC) #8
Jane
https://codereview.chromium.org/2267013002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2267013002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1571 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1571: } On 2016/08/22 20:43:22, sky wrote: > Can you ...
4 years, 4 months ago (2016-08-22 21:05:15 UTC) #11
sky
https://codereview.chromium.org/2267013002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2267013002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1577 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1577: button_out = nullptr; *button_out = nullptr; A better idea ...
4 years, 4 months ago (2016-08-22 23:16:42 UTC) #12
Jane
https://codereview.chromium.org/2267013002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2267013002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1577 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1577: button_out = nullptr; On 2016/08/22 23:16:42, sky wrote: > ...
4 years, 4 months ago (2016-08-23 00:28:07 UTC) #13
sky
Yes, this is what I meant. LGTM https://codereview.chromium.org/2267013002/diff/80001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2267013002/diff/80001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1571 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1571: *button_out = ...
4 years, 4 months ago (2016-08-23 13:20:40 UTC) #14
Jane
Consolidated sync error functions on mac too, PTAL, thanks! https://codereview.chromium.org/2267013002/diff/80001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2267013002/diff/80001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1571 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1571: ...
4 years, 4 months ago (2016-08-23 15:04:40 UTC) #15
groby-ooo-7-16
https://codereview.chromium.org/2267013002/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/2267013002/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode1895 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:1895: DCHECK(buttonAction); You added a buttonAction = nil case above. ...
4 years, 4 months ago (2016-08-23 15:16:49 UTC) #16
Jane
https://codereview.chromium.org/2267013002/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/2267013002/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode1895 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:1895: DCHECK(buttonAction); On 2016/08/23 15:16:49, groby wrote: > You added ...
4 years, 4 months ago (2016-08-23 16:39:39 UTC) #17
groby-ooo-7-16
Thank you for clarifying - cocoa LGTM as well
4 years, 4 months ago (2016-08-23 20:38:58 UTC) #18
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/2267013002/120001
4 years, 4 months ago (2016-08-23 21:38:58 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 4 months ago (2016-08-23 21:44:07 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 21:45:30 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5d85923b15015fff31fa7e187684b6dc559fe7b8
Cr-Commit-Position: refs/heads/master@{#413847}

Powered by Google App Engine
This is Rietveld 408576698