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

Issue 18179004: Dismiss action in tab modal dialogs. (Closed)

Created:
7 years, 5 months ago by fdoray
Modified:
7 years, 4 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Dismiss action in tab modal dialogs. See design document: https://docs.google.com/a/google.com/document/d/1i7V7rIcZiWRd9RqWDBC7bdtXeoT3ievSwgUOqrS1148/edit?usp=sharing TEST= 1. Sign in to Chromium. (Hot-dog menu > Sign in to Chromium...) 2. Sign out from Chromium. (Hot-dog menu > Settings, then click the "Disconnect your Google Account..." button) 3. Sign in to Chromium with a different account than the one used at step 1. 4. Do one of the following action once the email confirmation dialog appears: - Click the X on the top-left corner. - Close the parent tab. - Navigate to a different URL in the parent tab. Expected result: The dialog disappears and no action is performed (no Settings page is opened and the user is not signed in). BUG=175647 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214965

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Rebase + improve comments #

Patch Set 4 : Rename Dismiss -> Closed #

Patch Set 5 : Rename Closed -> Close, add browser test #

Patch Set 6 : Make the tests pass with GTK and Cocoa #

Total comments: 2

Patch Set 7 : Rebase #

Patch Set 8 : Fix CrOS build, fix Views browser tests #

Patch Set 9 : Fix CrOS build #

Patch Set 10 : Fix CrOS build #

Patch Set 11 : Rebase, fix CrOS build #

Total comments: 4

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : Rebase #

Patch Set 16 : Rebase #

Patch Set 17 : Fix test for Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -107 lines) Patch
M chrome/browser/chromeos/enrollment_dialog_view.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/power/idle_action_warning_dialog_view.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/idle_action_warning_observer.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/ui/app_launch_view.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/ui/app_launch_view.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/chromeos/ui/idle_logout_dialog_view.h View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/ui/idle_logout_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/ui/idle_logout_dialog_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/download/download_danger_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/repost_form_warning_controller.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/repost_form_warning_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/tab_modal_confirm_dialog_browsertest.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_modal_confirm_dialog_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +46 lines, -2 lines 0 comments Download
M chrome/browser/ui/tab_modal_confirm_dialog_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +21 lines, -8 lines 0 comments Download
M chrome/browser/ui/tab_modal_confirm_dialog_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.h View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/javascript_app_modal_dialog_views.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/javascript_app_modal_dialog_views.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 3 chunks +14 lines, -15 lines 0 comments Download
ui/views/window/dialog_delegate.h View 1 2 3 4 2 chunks +16 lines, -9 lines 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
fdoray
https://codereview.chromium.org/18179004/diff/1/chrome/browser/download/download_danger_prompt.cc File chrome/browser/download/download_danger_prompt.cc (right): https://codereview.chromium.org/18179004/diff/1/chrome/browser/download/download_danger_prompt.cc#newcode151 chrome/browser/download/download_danger_prompt.cc:151: RunCallback(canceled_); Should I call OnCanceled here to avoid code ...
7 years, 5 months ago (2013-06-28 15:32:59 UTC) #1
benjhayden
lgtm https://codereview.chromium.org/18179004/diff/1/chrome/browser/download/download_danger_prompt.cc File chrome/browser/download/download_danger_prompt.cc (right): https://codereview.chromium.org/18179004/diff/1/chrome/browser/download/download_danger_prompt.cc#newcode151 chrome/browser/download/download_danger_prompt.cc:151: RunCallback(canceled_); On 2013/06/28 15:32:59, fdoray wrote: > Should ...
7 years, 5 months ago (2013-06-28 16:05:46 UTC) #2
Roger Tawa OOO till Jul 10th
lgtm Personally, I think its easier to understand the base class if OnDismissed() does not ...
7 years, 5 months ago (2013-07-02 15:09:11 UTC) #3
fdoray
+ben@chromium.org Owner
7 years, 5 months ago (2013-07-02 15:15:53 UTC) #4
benjhayden
Ping? It would be nice if this were committed so that https://codereview.chromium.org/16924017/ could use it. ...
7 years, 5 months ago (2013-07-09 20:01:35 UTC) #5
fdoray
Rebase. My CL makes changes in the same spot of tab_modal_confirm_dialog_delegate.cc than https://chromiumcodereview.appspot.com/17500003 (which was ...
7 years, 5 months ago (2013-07-12 18:58:33 UTC) #6
fdoray
-ben@ +sky@ Could you review this CL?
7 years, 5 months ago (2013-07-12 19:09:00 UTC) #7
fdoray
+jam@ Reviewer for chrome/browser/repost_form_warning_controller.*?
7 years, 5 months ago (2013-07-12 19:57:59 UTC) #8
jam
lgtm
7 years, 5 months ago (2013-07-12 21:31:31 UTC) #9
noms (inactive)
lgtm
7 years, 5 months ago (2013-07-15 14:20:44 UTC) #10
sky
What swap Ben for me?
7 years, 5 months ago (2013-07-15 19:48:59 UTC) #11
fdoray
On 2013/07/15 19:48:59, sky wrote: > What swap Ben for me? I wasn't sure he ...
7 years, 5 months ago (2013-07-15 20:14:04 UTC) #12
sky
He's around. On Mon, Jul 15, 2013 at 1:14 PM, <fdoray@chromium.org> wrote: > On 2013/07/15 ...
7 years, 5 months ago (2013-07-15 21:01:27 UTC) #13
fdoray
+ben@ Could you review this CL? Thanks.
7 years, 5 months ago (2013-07-15 21:08:16 UTC) #14
fdoray
Ben, could you review this CL? Thanks. On 2013/07/15 21:08:16, fdoray wrote: > +ben@ > ...
7 years, 5 months ago (2013-07-17 17:43:36 UTC) #15
fdoray
+sky@ Scott, could you review this CL? Ben seems to be too busy to review ...
7 years, 5 months ago (2013-07-22 13:40:06 UTC) #16
Ben Goodger (Google)
https://codereview.chromium.org/18179004/diff/9001/ui/views/window/dialog_delegate.h File ui/views/window/dialog_delegate.h (right): https://codereview.chromium.org/18179004/diff/9001/ui/views/window/dialog_delegate.h#newcode78 ui/views/window/dialog_delegate.h:78: virtual bool Dismiss(); Can we call this "Close()"? That ...
7 years, 5 months ago (2013-07-23 17:52:09 UTC) #17
fdoray
Ben, could you review this again? Thanks. https://codereview.chromium.org/18179004/diff/9001/ui/views/window/dialog_delegate.h File ui/views/window/dialog_delegate.h (right): https://codereview.chromium.org/18179004/diff/9001/ui/views/window/dialog_delegate.h#newcode78 ui/views/window/dialog_delegate.h:78: virtual bool ...
7 years, 5 months ago (2013-07-24 15:09:16 UTC) #18
Ben Goodger (Google)
https://codereview.chromium.org/18179004/diff/9001/ui/views/window/dialog_delegate.h File ui/views/window/dialog_delegate.h (right): https://codereview.chromium.org/18179004/diff/9001/ui/views/window/dialog_delegate.h#newcode78 ui/views/window/dialog_delegate.h:78: virtual bool Dismiss(); I'd change the notification below to ...
7 years, 5 months ago (2013-07-24 17:56:21 UTC) #19
fdoray
Ben: I renamed the methods as you suggested. CL is ready to be reviewed again. ...
7 years, 5 months ago (2013-07-24 20:21:06 UTC) #20
Ben Goodger (Google)
lgtm
7 years, 5 months ago (2013-07-25 18:06:47 UTC) #21
fdoray
Owners, could you review this CL? Thanks! achuith@ chrome/browser/chromeos/enrollment_dialog_view.cc asvitkine@ chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.mm erg@ chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.cc
7 years, 5 months ago (2013-07-25 18:23:44 UTC) #22
Alexei Svitkine (slow)
cocoa lgtm
7 years, 5 months ago (2013-07-25 18:24:57 UTC) #23
Elliot Glaysher
gtk lgtm
7 years, 5 months ago (2013-07-25 18:26:21 UTC) #24
achuithb
chromeos/enrollment_dialog_view.cc rubberstamp lgtm
7 years, 5 months ago (2013-07-25 18:39:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/61001
7 years, 5 months ago (2013-07-25 19:23:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/61001
7 years, 5 months ago (2013-07-25 22:35:35 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/61001
7 years, 5 months ago (2013-07-25 22:36:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/61001
7 years, 5 months ago (2013-07-25 23:06:43 UTC) #29
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-26 03:37:58 UTC) #30
fdoray
achuith, Ben: The code changed since you reviewed it. Do you want to review it ...
7 years, 4 months ago (2013-07-29 15:21:03 UTC) #31
achuithb
I didn't look over the entire CL, just the cros parts. https://codereview.chromium.org/18179004/diff/159001/chrome/browser/chromeos/power/idle_action_warning_dialog_view.h File chrome/browser/chromeos/power/idle_action_warning_dialog_view.h (right): ...
7 years, 4 months ago (2013-07-29 17:56:38 UTC) #32
fdoray
achuith@ : I answered your questions. Can you review again? https://codereview.chromium.org/18179004/diff/159001/chrome/browser/chromeos/power/idle_action_warning_dialog_view.h File chrome/browser/chromeos/power/idle_action_warning_dialog_view.h (right): https://codereview.chromium.org/18179004/diff/159001/chrome/browser/chromeos/power/idle_action_warning_dialog_view.h#newcode20 ...
7 years, 4 months ago (2013-07-29 18:38:37 UTC) #33
achuithb
owner lgtm for chrome/browser/chromeos/*
7 years, 4 months ago (2013-07-29 18:42:49 UTC) #34
Ben Goodger (Google)
lgtm
7 years, 4 months ago (2013-07-30 22:35:05 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/220001
7 years, 4 months ago (2013-07-31 17:26:47 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/220001
7 years, 4 months ago (2013-07-31 18:10:25 UTC) #37
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-07-31 18:10:43 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/238001
7 years, 4 months ago (2013-07-31 18:26:06 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/220002
7 years, 4 months ago (2013-07-31 19:13:45 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/214002
7 years, 4 months ago (2013-07-31 21:42:25 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/273001
7 years, 4 months ago (2013-08-01 01:29:17 UTC) #42
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-01 01:45:44 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/273001
7 years, 4 months ago (2013-08-01 02:27:13 UTC) #44
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-01 02:36:02 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/18179004/273001
7 years, 4 months ago (2013-08-01 02:51:11 UTC) #46
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 05:46:23 UTC) #47
Message was sent while issue was closed.
Change committed as 214965

Powered by Google App Engine
This is Rietveld 408576698