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

Issue 12221111: Add a modal confirmation dialog to the enterprise profile sign-in flow. (Closed)

Created:
7 years, 10 months ago by dconnelly
Modified:
7 years, 10 months ago
CC:
chromium-reviews, tfarina, arv+watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Add a modal confirmation dialog to the enterprise profile sign-in flow. When signing in with an enterprise user account, the user is prompted to create a new Chrome profile, continue signing in with the current profile, or cancel the signin process. BUG=171236 TBR=jhawkins Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182702

Patch Set 1 #

Patch Set 2 : revert native ui experiment #

Patch Set 3 : more cleanup #

Total comments: 27

Patch Set 4 : fix dcheck #

Patch Set 5 : Move WebUI handler into WebDialogDelegate implementation #

Total comments: 10

Patch Set 6 : move handler into anon namespace and satisfy the compiler with consts #

Patch Set 7 : cancel signin when user closes the tab; class comments #

Total comments: 19

Patch Set 8 : nits #

Patch Set 9 : forgot to git add a few #

Total comments: 12

Patch Set 10 : nits #

Patch Set 11 : copyright header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -14 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/profile_signin_confirmation.html View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/resources/profile_signin_confirmation.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_manager.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +18 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc View 1 2 3 4 5 6 7 8 9 1 chunk +187 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.cc View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
dconnelly
This is very rough, but it's 90% done and I think I can finish the ...
7 years, 10 months ago (2013-02-10 15:49:08 UTC) #1
Andrew T Wilson (Slow)
Looks pretty good so far, although I'm not the world's greatest web_ui expert. I'd also ...
7 years, 10 months ago (2013-02-10 20:47:26 UTC) #2
dconnelly
https://codereview.chromium.org/12221111/diff/1023/chrome/browser/resources/profile_signin_confirmation.html File chrome/browser/resources/profile_signin_confirmation.html (right): https://codereview.chromium.org/12221111/diff/1023/chrome/browser/resources/profile_signin_confirmation.html#newcode6 chrome/browser/resources/profile_signin_confirmation.html:6: <link rel="stylesheet" href="hello_world.css"> On 2013/02/10 20:47:26, Andrew T Wilson ...
7 years, 10 months ago (2013-02-11 09:35:15 UTC) #3
dconnelly
https://codereview.chromium.org/12221111/diff/1023/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h File chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h (right): https://codereview.chromium.org/12221111/diff/1023/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h#newcode52 chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h:52: mutable scoped_ptr<ProfileSigninConfirmationHandler> handler_; On 2013/02/10 20:47:26, Andrew T Wilson ...
7 years, 10 months ago (2013-02-11 09:59:20 UTC) #4
dconnelly
On 2013/02/11 09:59:20, dconnelly wrote: > https://codereview.chromium.org/12221111/diff/1023/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h > File chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h > (right): > > https://codereview.chromium.org/12221111/diff/1023/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h#newcode52 ...
7 years, 10 months ago (2013-02-11 10:11:36 UTC) #5
dconnelly
https://codereview.chromium.org/12221111/diff/1023/chrome/browser/resources/profile_signin_confirmation.js File chrome/browser/resources/profile_signin_confirmation.js (right): https://codereview.chromium.org/12221111/diff/1023/chrome/browser/resources/profile_signin_confirmation.js#newcode10 chrome/browser/resources/profile_signin_confirmation.js:10: $('createButton').addEventListener('click', function() { On 2013/02/10 20:47:26, Andrew T Wilson ...
7 years, 10 months ago (2013-02-11 10:37:04 UTC) #6
dconnelly
Hi Roger, Drew suggested that I ask you to review this CL. Can you offer ...
7 years, 10 months ago (2013-02-11 11:48:29 UTC) #7
Roger Tawa OOO till Jul 10th
a Few nits, but I'm not very familiar with webui either, so an owner from ...
7 years, 10 months ago (2013-02-11 16:24:39 UTC) #8
dconnelly
Sorry for the delay. I was working down to the wire trying to get another ...
7 years, 10 months ago (2013-02-12 10:04:36 UTC) #9
dconnelly
On 2013/02/12 10:04:36, dconnelly wrote: > Sorry for the delay. I was working down to ...
7 years, 10 months ago (2013-02-12 10:43:42 UTC) #10
Andrew T Wilson (Slow)
https://codereview.chromium.org/12221111/diff/11002/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc File chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc (right): https://codereview.chromium.org/12221111/diff/11002/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc#newcode132 chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc:132: profile, this, NULL, browser->tab_strip_model()->GetActiveWebContents()); On 2013/02/11 16:24:39, Roger Tawa ...
7 years, 10 months ago (2013-02-12 10:46:40 UTC) #11
dconnelly
On 2013/02/12 10:46:40, Andrew T Wilson wrote: > https://codereview.chromium.org/12221111/diff/11002/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc > File chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc > (right): > ...
7 years, 10 months ago (2013-02-12 13:31:17 UTC) #12
Andrew T Wilson (Slow)
LGTM here - it's ready for webui review.
7 years, 10 months ago (2013-02-12 14:09:59 UTC) #13
dconnelly
Hi James, I have a WebUI modal dialog that needs review from a WebUI expert. ...
7 years, 10 months ago (2013-02-12 14:17:23 UTC) #14
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/12221111/diff/11002/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc File chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc (right): https://codereview.chromium.org/12221111/diff/11002/chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc#newcode132 chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.cc:132: profile, this, NULL, browser->tab_strip_model()->GetActiveWebContents()); On 2013/02/12 10:46:41, Andrew T ...
7 years, 10 months ago (2013-02-12 14:57:28 UTC) #15
James Hawkins
Is codereview messing up? I see the first CSS file as being empty.
7 years, 10 months ago (2013-02-12 18:58:08 UTC) #16
Andrew T Wilson (Slow)
On 2013/02/12 18:58:08, James Hawkins wrote: > Is codereview messing up? I see the first ...
7 years, 10 months ago (2013-02-12 20:57:07 UTC) #17
James Hawkins
On 2013/02/12 20:57:07, Andrew T Wilson wrote: > On 2013/02/12 18:58:08, James Hawkins wrote: > ...
7 years, 10 months ago (2013-02-12 21:11:46 UTC) #18
Andrew T Wilson (Slow)
On 2013/02/12 21:11:46, James Hawkins wrote: > On 2013/02/12 20:57:07, Andrew T Wilson wrote: > ...
7 years, 10 months ago (2013-02-12 21:31:34 UTC) #19
James Hawkins
https://chromiumcodereview.appspot.com/12221111/diff/5018/chrome/browser/resources/profile_signin_confirmation.html File chrome/browser/resources/profile_signin_confirmation.html (right): https://chromiumcodereview.appspot.com/12221111/diff/5018/chrome/browser/resources/profile_signin_confirmation.html#newcode15 chrome/browser/resources/profile_signin_confirmation.html:15: <p id="dialogMessage"></p> nit: id must be dash-form. Here and ...
7 years, 10 months ago (2013-02-12 21:40:40 UTC) #20
dconnelly
https://chromiumcodereview.appspot.com/12221111/diff/5018/chrome/browser/resources/profile_signin_confirmation.html File chrome/browser/resources/profile_signin_confirmation.html (right): https://chromiumcodereview.appspot.com/12221111/diff/5018/chrome/browser/resources/profile_signin_confirmation.html#newcode15 chrome/browser/resources/profile_signin_confirmation.html:15: <p id="dialogMessage"></p> On 2013/02/12 21:40:40, James Hawkins wrote: > ...
7 years, 10 months ago (2013-02-13 09:02:27 UTC) #21
dconnelly
https://chromiumcodereview.appspot.com/12221111/diff/5018/chrome/browser/resources/profile_signin_confirmation.html File chrome/browser/resources/profile_signin_confirmation.html (right): https://chromiumcodereview.appspot.com/12221111/diff/5018/chrome/browser/resources/profile_signin_confirmation.html#newcode21 chrome/browser/resources/profile_signin_confirmation.html:21: <script src="chrome://resources/js/i18n_template2.js"></script> On 2013/02/12 21:40:40, James Hawkins wrote: > ...
7 years, 10 months ago (2013-02-13 09:12:48 UTC) #22
dconnelly1
Empty CSS file removed. On Tue, Feb 12, 2013 at 10:11 PM, <jhawkins@chromium.org> wrote: > ...
7 years, 10 months ago (2013-02-13 09:21:21 UTC) #23
dconnelly1
Okay---all finished. On Wed, Feb 13, 2013 at 10:21 AM, Daniel Connelly <dconnelly@google.com> wrote: > ...
7 years, 10 months ago (2013-02-13 09:21:55 UTC) #24
James Hawkins
https://chromiumcodereview.appspot.com/12221111/diff/4022/chrome/browser/resources/profile_signin_confirmation.html File chrome/browser/resources/profile_signin_confirmation.html (right): https://chromiumcodereview.appspot.com/12221111/diff/4022/chrome/browser/resources/profile_signin_confirmation.html#newcode16 chrome/browser/resources/profile_signin_confirmation.html:16: href="http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549" nit: Indentation must be 4 spaces in. https://chromiumcodereview.appspot.com/12221111/diff/4022/chrome/browser/resources/profile_signin_confirmation.html#newcode17 ...
7 years, 10 months ago (2013-02-13 21:41:31 UTC) #25
dconnelly1
I thought I responded about the script tag, but maybe not. It processes the DOM ...
7 years, 10 months ago (2013-02-13 23:01:03 UTC) #26
dconnelly
PTAL https://chromiumcodereview.appspot.com/12221111/diff/4022/chrome/browser/resources/profile_signin_confirmation.html File chrome/browser/resources/profile_signin_confirmation.html (right): https://chromiumcodereview.appspot.com/12221111/diff/4022/chrome/browser/resources/profile_signin_confirmation.html#newcode16 chrome/browser/resources/profile_signin_confirmation.html:16: href="http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549" On 2013/02/13 21:41:31, James Hawkins wrote: > ...
7 years, 10 months ago (2013-02-14 08:56:05 UTC) #27
Andrew T Wilson (Slow)
James, we need to land this ASAP as this addresses a beta blocker, so if ...
7 years, 10 months ago (2013-02-14 10:06:03 UTC) #28
dconnelly
Hi James, We're going to go ahead and commit this. Please let me know if ...
7 years, 10 months ago (2013-02-15 09:28:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/12221111/17002
7 years, 10 months ago (2013-02-15 09:31:25 UTC) #30
commit-bot: I haz the power
Presubmit check for 12221111-17002 failed and returned exit status 1. INFO:root:Found 13 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-15 09:31:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/12221111/25002
7 years, 10 months ago (2013-02-15 09:36:33 UTC) #32
Andrew T Wilson (Slow)
Committed manually as r182702 (presubmit successful).
7 years, 10 months ago (2013-02-15 14:02:59 UTC) #33
James Hawkins
7 years, 10 months ago (2013-02-15 23:35:13 UTC) #34
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698