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

Issue 2862653002: If force-sign-in policy is enabled, popup warning dialog before window closing if auth token becom… (Closed)

Created:
3 years, 7 months ago by zmin
Modified:
3 years, 6 months ago
CC:
chromium-reviews, tfarina, srahim+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

If force-sign-in policy is enabled, popup warning dialog before window closing if auth token become invalid. Screenshots: https://goo.gl/photos/3KiQsSAPTse5brR89 https://goo.gl/photos/1jdyC86dSSyZVdi8A BUG=642059 Review-Url: https://codereview.chromium.org/2862653002 Cr-Commit-Position: refs/heads/master@{#478124} Committed: https://chromium.googlesource.com/chromium/src/+/4dc68137b9724480cf6e055d24cbff75458a114e

Patch Set 1 #

Patch Set 2 : fixup #

Total comments: 45

Patch Set 3 : sky's comments, without browsertest update #

Patch Set 4 : update browser test #

Patch Set 5 : fix #

Patch Set 6 : remove app_modal:: #

Total comments: 1

Patch Set 7 : fixup and rebase from master #

Total comments: 1

Patch Set 8 : refactor #

Total comments: 10

Patch Set 9 : cr #

Total comments: 41

Patch Set 10 : cr and rebase from master #

Total comments: 4

Patch Set 11 : UX update #

Total comments: 36

Patch Set 12 : cr #

Patch Set 13 : rename #

Patch Set 14 : remove timer #

Total comments: 6

Patch Set 15 : cr #

Total comments: 2

Patch Set 16 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -1 line) Patch
M chrome/app/chromium_strings.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/browser_modal_dialog_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +250 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/profiles/forced_reauthentication_dialog_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M components/signin/core/browser/signin_metrics.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 142 (98 generated)
zmin
Hi sky, Could you take a look this CL please? Owen
3 years, 7 months ago (2017-05-03 19:29:04 UTC) #2
sky
https://codereview.chromium.org/2862653002/diff/80001/chrome/app/chromium_strings.grd File chrome/app/chromium_strings.grd (right): https://codereview.chromium.org/2862653002/diff/80001/chrome/app/chromium_strings.grd#newcode761 chrome/app/chromium_strings.grd:761: <message name="IDS_ENTERPRISE_FORCE_SIGNOUT_CLOSE_CONFIRM" desc="Text of the button to cofirm close ...
3 years, 7 months ago (2017-05-04 03:45:12 UTC) #26
zmin
https://codereview.chromium.org/2862653002/diff/80001/chrome/app/chromium_strings.grd File chrome/app/chromium_strings.grd (right): https://codereview.chromium.org/2862653002/diff/80001/chrome/app/chromium_strings.grd#newcode761 chrome/app/chromium_strings.grd:761: <message name="IDS_ENTERPRISE_FORCE_SIGNOUT_CLOSE_CONFIRM" desc="Text of the button to cofirm close ...
3 years, 7 months ago (2017-05-04 23:13:53 UTC) #28
sky
https://codereview.chromium.org/2862653002/diff/80001/chrome/browser/ui/views/profiles/force_signout_dialog.cc File chrome/browser/ui/views/profiles/force_signout_dialog.cc (right): https://codereview.chromium.org/2862653002/diff/80001/chrome/browser/ui/views/profiles/force_signout_dialog.cc#newcode38 chrome/browser/ui/views/profiles/force_signout_dialog.cc:38: bool IsBrowserBelongedToProfile(Browser* browser, Profile* profile) { On 2017/05/04 23:13:52, ...
3 years, 7 months ago (2017-05-05 00:00:10 UTC) #32
zmin
I have tested the dialog on Mac. The dialog itself looks good. But it seems ...
3 years, 7 months ago (2017-05-05 22:22:57 UTC) #35
sky
Sorry to ask this now, but is there a design doc for this? I'm wondering ...
3 years, 7 months ago (2017-05-05 22:32:20 UTC) #36
zmin
On 2017/05/05 22:32:20, sky wrote: > Sorry to ask this now, but is there a ...
3 years, 7 months ago (2017-05-05 22:42:05 UTC) #37
sky
Thanks! So, I think if you want true app-modal you need to use another mechanism. ...
3 years, 7 months ago (2017-05-05 22:45:08 UTC) #38
zmin
Is there any true app-modal dialog in chromium? Because this is the only dialog class ...
3 years, 7 months ago (2017-05-05 23:40:27 UTC) #41
sky
On windows I don't believe we have anything app modal. Why is it ok to ...
3 years, 7 months ago (2017-05-07 22:45:54 UTC) #42
zmin
On 2017/05/07 22:45:54, sky wrote: > On windows I don't believe we have anything app ...
3 years, 7 months ago (2017-05-08 20:25:52 UTC) #45
sky
Fair enough. My concern then is that you are using the existing appmodal code, which ...
3 years, 7 months ago (2017-05-08 21:48:45 UTC) #48
chromium-reviews
Yes, I agree tie this dialog to a WebContents is a weird logic. However, app_modal ...
3 years, 7 months ago (2017-05-08 22:37:47 UTC) #49
sky
You are using code that happens to provide functionality close to what you want, even ...
3 years, 7 months ago (2017-05-08 22:54:52 UTC) #50
zmin
On 2017/05/08 22:54:52, sky wrote: > You are using code that happens to provide functionality ...
3 years, 7 months ago (2017-05-09 22:36:48 UTC) #53
sky
+avi for app_modal below. zmin: don't go back to app_modal until you here from Avi. ...
3 years, 7 months ago (2017-05-10 15:43:26 UTC) #57
zmin
On 2017/05/10 15:43:26, sky wrote: > +avi for app_modal below. > zmin: don't go back ...
3 years, 7 months ago (2017-05-10 18:33:28 UTC) #58
Avi (use Gerrit)
The notion of extending app_modal and using app-modal dialogs does not sit well with me ...
3 years, 7 months ago (2017-05-10 20:05:05 UTC) #59
sky
Ok, thanks Avi. I'll remove you as a reviewer as this won't use app_modal.
3 years, 7 months ago (2017-05-12 13:13:27 UTC) #73
sky
https://codereview.chromium.org/2862653002/diff/220001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2862653002/diff/220001/chrome/browser/ui/views/frame/browser_view.cc#newcode1587 chrome/browser/ui/views/frame/browser_view.cc:1587: if ((!queue->active_dialog() || !queue->active_dialog()->native_dialog() || Continually adding dependencies from ...
3 years, 7 months ago (2017-05-12 13:15:16 UTC) #76
zmin
On 2017/05/12 13:15:16, sky wrote: > https://codereview.chromium.org/2862653002/diff/220001/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/2862653002/diff/220001/chrome/browser/ui/views/frame/browser_view.cc#newcode1587 > ...
3 years, 7 months ago (2017-05-15 21:58:36 UTC) #79
sky
https://codereview.chromium.org/2862653002/diff/260001/chrome/browser/ui/views/browser_modal_dialog.cc File chrome/browser/ui/views/browser_modal_dialog.cc (right): https://codereview.chromium.org/2862653002/diff/260001/chrome/browser/ui/views/browser_modal_dialog.cc#newcode30 chrome/browser/ui/views/browser_modal_dialog.cc:30: if (it != dialogs_.end()) { no {} https://codereview.chromium.org/2862653002/diff/260001/chrome/browser/ui/views/browser_modal_dialog.h File ...
3 years, 7 months ago (2017-05-16 12:40:33 UTC) #87
zmin
https://codereview.chromium.org/2862653002/diff/260001/chrome/browser/ui/views/browser_modal_dialog.cc File chrome/browser/ui/views/browser_modal_dialog.cc (right): https://codereview.chromium.org/2862653002/diff/260001/chrome/browser/ui/views/browser_modal_dialog.cc#newcode30 chrome/browser/ui/views/browser_modal_dialog.cc:30: if (it != dialogs_.end()) { On 2017/05/16 12:40:32, sky ...
3 years, 7 months ago (2017-05-16 22:22:02 UTC) #90
sky
https://codereview.chromium.org/2862653002/diff/280001/chrome/app/google_chrome_strings.grd File chrome/app/google_chrome_strings.grd (right): https://codereview.chromium.org/2862653002/diff/280001/chrome/app/google_chrome_strings.grd#newcode766 chrome/app/google_chrome_strings.grd:766: Close all Google Chrome windows and sign in now ...
3 years, 7 months ago (2017-05-17 18:03:18 UTC) #93
zmin
https://codereview.chromium.org/2862653002/diff/280001/chrome/app/google_chrome_strings.grd File chrome/app/google_chrome_strings.grd (right): https://codereview.chromium.org/2862653002/diff/280001/chrome/app/google_chrome_strings.grd#newcode766 chrome/app/google_chrome_strings.grd:766: Close all Google Chrome windows and sign in now ...
3 years, 7 months ago (2017-05-18 03:31:18 UTC) #96
sky
https://codereview.chromium.org/2862653002/diff/280001/chrome/app/google_chrome_strings.grd File chrome/app/google_chrome_strings.grd (right): https://codereview.chromium.org/2862653002/diff/280001/chrome/app/google_chrome_strings.grd#newcode766 chrome/app/google_chrome_strings.grd:766: Close all Google Chrome windows and sign in now ...
3 years, 7 months ago (2017-05-18 16:50:51 UTC) #99
zmin
Hi Scott, I have chatted with the UX. And based on our discussion, here is ...
3 years, 6 months ago (2017-06-05 20:23:58 UTC) #104
sky
https://codereview.chromium.org/2862653002/diff/360001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2862653002/diff/360001/chrome/app/generated_resources.grd#newcode8108 chrome/app/generated_resources.grd:8108: <message name="IDS_ENTERPRISE_FORCE_SIGNOUT_CLOSE_CONFIRM" desc="Text of the button to confirm close ...
3 years, 6 months ago (2017-06-05 23:43:19 UTC) #107
zmin
https://codereview.chromium.org/2862653002/diff/360001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2862653002/diff/360001/chrome/app/generated_resources.grd#newcode8108 chrome/app/generated_resources.grd:8108: <message name="IDS_ENTERPRISE_FORCE_SIGNOUT_CLOSE_CONFIRM" desc="Text of the button to confirm close ...
3 years, 6 months ago (2017-06-06 21:00:44 UTC) #112
sky
https://codereview.chromium.org/2862653002/diff/360001/chrome/browser/ui/views/profiles/force_signout_dialog.cc File chrome/browser/ui/views/profiles/force_signout_dialog.cc (right): https://codereview.chromium.org/2862653002/diff/360001/chrome/browser/ui/views/profiles/force_signout_dialog.cc#newcode198 chrome/browser/ui/views/profiles/force_signout_dialog.cc:198: views::GridLayout* dialog_layout = new views::GridLayout(this); On 2017/06/06 21:00:43, zmin ...
3 years, 6 months ago (2017-06-06 23:10:39 UTC) #115
zmin
On 2017/06/06 23:10:39, sky wrote: > https://codereview.chromium.org/2862653002/diff/360001/chrome/browser/ui/views/profiles/force_signout_dialog.cc > File chrome/browser/ui/views/profiles/force_signout_dialog.cc (right): > > https://codereview.chromium.org/2862653002/diff/360001/chrome/browser/ui/views/profiles/force_signout_dialog.cc#newcode198 > ...
3 years, 6 months ago (2017-06-07 00:00:38 UTC) #116
zmin
On 2017/06/07 00:00:38, zmin wrote: > On 2017/06/06 23:10:39, sky wrote: > > > https://codereview.chromium.org/2862653002/diff/360001/chrome/browser/ui/views/profiles/force_signout_dialog.cc ...
3 years, 6 months ago (2017-06-07 16:23:59 UTC) #118
sky
On Tue, Jun 6, 2017 at 5:00 PM, <zmin@chromium.org> wrote: > On 2017/06/06 23:10:39, sky ...
3 years, 6 months ago (2017-06-07 16:51:57 UTC) #120
zmin
On 2017/06/07 16:51:57, sky wrote: > On Tue, Jun 6, 2017 at 5:00 PM, <mailto:zmin@chromium.org> ...
3 years, 6 months ago (2017-06-07 19:17:18 UTC) #125
zmin
On 2017/06/07 19:17:18, zmin wrote: > On 2017/06/07 16:51:57, sky wrote: > > On Tue, ...
3 years, 6 months ago (2017-06-07 19:22:23 UTC) #126
sky
Can the consumer supply the duration to the dialog? On Wed, Jun 7, 2017 at ...
3 years, 6 months ago (2017-06-07 20:22:24 UTC) #129
sky
https://codereview.chromium.org/2862653002/diff/420001/chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc File chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc (right): https://codereview.chromium.org/2862653002/diff/420001/chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc#newcode120 chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc:120: if (GetTimeRemaining() < base::TimeDelta::FromSeconds(kCloseDirectlyTimer)) { Is this conditional still ...
3 years, 6 months ago (2017-06-07 20:37:59 UTC) #130
zmin
https://codereview.chromium.org/2862653002/diff/420001/chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc File chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc (right): https://codereview.chromium.org/2862653002/diff/420001/chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc#newcode120 chrome/browser/ui/views/profiles/forced_reauthentication_dialog.cc:120: if (GetTimeRemaining() < base::TimeDelta::FromSeconds(kCloseDirectlyTimer)) { On 2017/06/07 20:37:59, sky ...
3 years, 6 months ago (2017-06-07 20:56:49 UTC) #131
sky
LGTM https://codereview.chromium.org/2862653002/diff/440001/chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h File chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h (right): https://codereview.chromium.org/2862653002/diff/440001/chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h#newcode60 chrome/browser/ui/views/profiles/forced_reauthentication_dialog.h:60: base::TimeTicks desired_close_time_; const
3 years, 6 months ago (2017-06-07 23:06:58 UTC) #132
zmin
+rogerta@ for components/signin/core/browser/signin_metrics.h +jwd@ for tools/metrics/actions/actions.xml
3 years, 6 months ago (2017-06-08 14:56:27 UTC) #134
Roger Tawa OOO till Jul 10th
lgtm components/signin/core/browser/signin_metrics.h
3 years, 6 months ago (2017-06-08 17:49:58 UTC) #135
jwd
LGTM with nit https://codereview.chromium.org/2862653002/diff/440001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/2862653002/diff/440001/tools/metrics/actions/actions.xml#newcode15400 tools/metrics/actions/actions.xml:15400: Recorded when user sign in again ...
3 years, 6 months ago (2017-06-08 19:39:23 UTC) #136
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/2862653002/460001
3 years, 6 months ago (2017-06-08 20:53:14 UTC) #139
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 23:51:58 UTC) #142
Message was sent while issue was closed.
Committed patchset #16 (id:460001) as
https://chromium.googlesource.com/chromium/src/+/4dc68137b9724480cf6e055d24cb...

Powered by Google App Engine
This is Rietveld 408576698