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

Issue 2255413002: [Signin Error Dialog] (3/3) Added the triggering code (Closed)

Created:
4 years, 4 months ago by Jane
Modified:
4 years, 1 month ago
Reviewers:
tommycli
CC:
arv+watch_chromium.org, chromium-reviews, tfarina, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Signin Error Dialog] (3/3) Added the triggering code Signin Error Dialog: Part of the desktop user menu revamp project is to migrate signin error surfacing from user menu's tutorial card to a tab modal dialog, and thus completing the flow of signin modal -> sync confirmation modal dialog or signin error modal dialog. Particularly, this CL adds the code for appropriately triggering the dialog. DO NOT LAND until after the first two CLs land ( https://codereview.chromium.org/2274013002/, https://codereview.chromium.org/2275883003/). Design doc: https://docs.google.com/document/d/17yHrKd_EU6WoIAgljnZmNCSJLRlbM3O2Pxr7aPEnqik/edit?ts=57445a70#heading=h.9vm5owqqt3w1 BUG=630523 BUG=615893 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : Fixed space before Learn More and some formatting #

Patch Set 3 : Cleared up Get/SetLastLoginErrorEmail #

Total comments: 12

Patch Set 4 : anthonyvd's first pass #

Total comments: 14

Patch Set 5 : Addressed tommycli's initial comments #

Patch Set 6 : Added missing files #

Patch Set 7 : Broke down the CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -19 lines) Patch
M chrome/browser/ui/browser.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm View 3 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/ui/signin_view_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/signin_view_controller.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/signin_view_controller_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc View 3 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 2 3 4 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 1 2 3 4 5 6 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Jane
Hi Anthony, can you take a look at this CL and let me know if ...
4 years, 4 months ago (2016-08-18 22:38:50 UTC) #3
anthonyvd
This looks good from my high level perspective. You should definitely start looping in owners. ...
4 years, 4 months ago (2016-08-22 14:58:46 UTC) #6
Jane
Thanks Anthony! Also a heads up that I do need your LGTM for profile_metrics.h later. ...
4 years, 4 months ago (2016-08-22 20:48:31 UTC) #7
Jane
Hi dbeam@, could you take a look at c/b/resources and c/b/ui/webui please, thanks!
4 years, 4 months ago (2016-08-22 20:49:54 UTC) #9
Dan Beam
+tommycli@ for a signin-related webui page
4 years, 4 months ago (2016-08-23 05:56:01 UTC) #11
tommycli
some initial comments. Can we split this CL into smaller ones of ~200 SLOC or ...
4 years, 4 months ago (2016-08-23 19:15:39 UTC) #12
Jane
4 years, 4 months ago (2016-08-24 13:40:31 UTC) #17
Hi Tommy, I addressed your initial comments and split this CL into three. I'll
send you the other two soon. Thanks!

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
File chrome/browser/resources/signin_error/signin_error.css (right):

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
chrome/browser/resources/signin_error/signin_error.css:19: border-bottom: 1px
solid lightgray;
On 2016/08/23 19:15:38, tommycli wrote:
> Are we sure we want to just use 'lightgray' instead of a polymer color?

Replaced with paper-grey-300. I was just copying the style from
sync-confirmation, but paper-grey-300 should be good.

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
File chrome/browser/resources/signin_error/signin_error.html (right):

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
chrome/browser/resources/signin_error/signin_error.html:9: <link
rel="stylesheet" href="signin_error.css"></link>
On 2016/08/23 19:15:39, tommycli wrote:
> If that CSS file is only used in here, why not just combine it below?
> 
> Also I think external stylesheets are deprecated:
> https://www.polymer-project.org/1.0/docs/devguide/styling#external-stylesheets

Done.

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
chrome/browser/resources/signin_error/signin_error.html:19: font-weight: 500;
On 2016/08/23 19:15:39, tommycli wrote:
> These styles that are in common with both primary and secondary can be just
put
> in a paper-button selector

Done.

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
chrome/browser/resources/signin_error/signin_error.html:44: <div class="details"
i18n-values=".innerHTML:signinErrorMessage"></div>
On 2016/08/23 19:15:39, tommycli wrote:
> does using $i18nRaw work?

Done. Yep!

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
File chrome/browser/resources/signin_error/signin_error.js (right):

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/resource...
chrome/browser/resources/signin_error/signin_error.js:27:
$('primaryConfirmButton').style.display = 'none';
On 2016/08/23 19:15:39, tommycli wrote:
> Instead of dynamically making it hidden, can we use CSS to start it as hidden?

Done.

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/signin/inline_login_handler_impl.cc (right):

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/ui/webui...
chrome/browser/ui/webui/signin/inline_login_handler_impl.cc:834:
params.handler->HandleLoginError(error_msg);
On 2016/08/23 19:15:39, tommycli wrote:
> Instead of setting a global SetLastLoginErrorEmail, we should pass it along
the
> same lines as error_msg.

Done.

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/signin/login_ui_service.cc (right):

https://codereview.chromium.org/2255413002/diff/60001/chrome/browser/ui/webui...
chrome/browser/ui/webui/signin/login_ui_service.cc:80:
browser->ShowModalSigninErrorWindow();
On 2016/08/23 19:15:39, tommycli wrote:
> Knowing little about signin, this confuses me. It should show the error window
> when there's a login result?
> 
> Is |message| always an error message? If so, we should rename the variable

Done. You are right, this is confusing. Somewhere buried deep it would say that
empty message means signin success, otherwise it's an error. I renamed it to be
error_message.

Powered by Google App Engine
This is Rietveld 408576698