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

Issue 7981045: Make infobars ignore button clicks when closing. (Closed)

Created:
9 years, 3 months ago by Peter Kasting
Modified:
9 years, 2 months ago
Reviewers:
Robert Sesek, sky
CC:
chromium-reviews, Avi (use Gerrit), Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Make infobars ignore button clicks when closing. This also fixes an unfiled bug where clicking the "deny" button on the Mac before translate infobar would double-count the denial. BUG=54253, 90985 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103368

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -129 lines) Patch
M chrome/browser/tab_contents/infobar.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/infobar.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_infobar_controller.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 4 5 6 7 8 9 10 10 chunks +40 lines, -38 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 8 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/translate/before_translate_infobar_controller.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/translate/translate_infobar_base.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +24 lines, -47 lines 0 comments Download
M chrome/browser/ui/views/infobars/after_translate_infobar.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/before_translate_infobar.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/infobars/link_infobar.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_message_infobar.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Kasting
sky: views erg: gtk rsesek: cocoa The goal of this patch is that once an ...
9 years, 3 months ago (2011-09-22 00:53:26 UTC) #1
sky
views LGTM
9 years, 3 months ago (2011-09-22 16:48:30 UTC) #2
Robert Sesek
On 2011/09/22 00:53:26, Peter Kasting wrote: > rsesek, why does the translate infobar disable a ...
9 years, 3 months ago (2011-09-22 16:49:55 UTC) #3
Peter Kasting
erg has a separate CL out to fix the gtk side of this in a ...
9 years, 3 months ago (2011-09-22 21:55:25 UTC) #4
Peter Kasting
New snap up. GTK has been addressed separately so it's no longer in this patch. ...
9 years, 2 months ago (2011-09-23 23:32:31 UTC) #5
Robert Sesek
On 2011/09/22 21:55:25, Peter Kasting wrote: > On 2011/09/22 16:49:55, rsesek wrote: > > On ...
9 years, 2 months ago (2011-09-24 19:20:16 UTC) #6
Peter Kasting
On 2011/09/24 19:20:16, rsesek wrote: > On 2011/09/22 21:55:25, Peter Kasting wrote: > > OK. ...
9 years, 2 months ago (2011-09-26 22:34:49 UTC) #7
Robert Sesek
c/b/u/cocoa/ LGTM with nits http://codereview.chromium.org/7981045/diff/27001/chrome/browser/ui/cocoa/infobars/infobar_controller.h File chrome/browser/ui/cocoa/infobars/infobar_controller.h (right): http://codereview.chromium.org/7981045/diff/27001/chrome/browser/ui/cocoa/infobars/infobar_controller.h#newcode55 chrome/browser/ui/cocoa/infobars/infobar_controller.h:55: - (BOOL)owned; nit: this should ...
9 years, 2 months ago (2011-09-27 18:21:46 UTC) #8
Peter Kasting
You might want to glance at the spacing in infobar_controller_unittest.mm -- I had to linebreak ...
9 years, 2 months ago (2011-09-27 18:29:34 UTC) #9
Robert Sesek
9 years, 2 months ago (2011-09-27 18:32:14 UTC) #10
On 2011/09/27 18:29:34, Peter Kasting wrote:
> You might want to glance at the spacing in infobar_controller_unittest.mm -- I
> had to linebreak a few calls and wasn't sure how best to do it.

Yup. That's one of the correct wrapping styles.

LGTM

Powered by Google App Engine
This is Rietveld 408576698