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

Issue 4767001: Make TabContents own its infobar delegates.... (Closed)

Created:
10 years, 1 month ago by Peter Kasting
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Make TabContents own its infobar delegates. Also does a bunch of random cleanup of container access. BUG=62154 TEST=Infobars don't leak

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -515 lines) Patch
M chrome/browser/cocoa/extensions/extension_infobar_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/cocoa/extensions/extension_infobar_controller.mm View 3 chunks +6 lines, -20 lines 0 comments Download
M chrome/browser/cocoa/infobar_container_controller.mm View 2 3 4 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller.mm View 2 4 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller_unittest.mm View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/crashed_extension_infobar.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.h View 3 chunks +4 lines, -22 lines 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context.cc View 15 chunks +108 lines, -87 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 3 13 chunks +60 lines, -67 lines 0 comments Download
M chrome/browser/gtk/extension_infobar_gtk.h View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/gtk/extension_infobar_gtk.cc View 4 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/gtk/extension_view_gtk.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/gtk/extension_view_gtk.cc View 2 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/gtk/infobar_container_gtk.cc View 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/gtk/infobar_gtk.h View 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/gtk/infobar_gtk.cc View 2 3 4 5 6 6 chunks +16 lines, -15 lines 0 comments Download
M chrome/browser/gtk/translate/after_translate_infobar_gtk.cc View 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/gtk/translate/before_translate_infobar_gtk.cc View 4 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/gtk/translate/translate_infobar_base_gtk.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/gtk/translate/translate_infobar_base_gtk.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/gtk/translate/translate_message_infobar_gtk.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 9 chunks +80 lines, -81 lines 0 comments Download
M chrome/browser/tab_contents/test_tab_contents.h View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/tab_contents/test_tab_contents.cc View 2 chunks +1 line, -29 lines 0 comments Download
M chrome/browser/ui/views/infobars/after_translate_infobar.cc View 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/before_translate_infobar.cc View 4 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.h View 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 4 chunks +36 lines, -47 lines 4 comments Download
M chrome/browser/ui/views/infobars/infobar_container.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobars.h View 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobars.cc View 1 2 10 chunks +23 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_infobar_base.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_message_infobar.cc View 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Peter Kasting
Here's a shot at making TabContents own its infobar delegates and close them synchronously on ...
10 years, 1 month ago (2010-11-10 02:08:39 UTC) #1
Peter Kasting
New snap attempts to support Mac and GTK and fix some problems in the first ...
10 years, 1 month ago (2010-11-10 02:33:37 UTC) #2
tfarina
http://codereview.chromium.org/4767001/diff/7001/chrome/browser/gtk/infobar_gtk.cc File chrome/browser/gtk/infobar_gtk.cc (right): http://codereview.chromium.org/4767001/diff/7001/chrome/browser/gtk/infobar_gtk.cc#newcode358 chrome/browser/gtk/infobar_gtk.cc:358: if (link_info_bar->delegate_ && Why the check here and else ...
10 years, 1 month ago (2010-11-10 13:11:57 UTC) #3
Peter Kasting
tfarina, please do not lecture me, or anyone else, about Chromium style unless you have ...
10 years, 1 month ago (2010-11-10 19:03:42 UTC) #4
Ben Goodger (Google)
I am not the best person to review cocoa/gtk changes so rohit/estade/erg should take a ...
10 years, 1 month ago (2010-11-10 21:30:59 UTC) #5
Peter Kasting
Added a number of reviewers. Also Ben see below. * Rohit: Mac code. Please note ...
10 years, 1 month ago (2010-11-11 22:23:24 UTC) #6
Evan Stade
*gtk* lgtm http://codereview.chromium.org/4767001/diff/38001/chrome/browser/gtk/infobar_container_gtk.cc File chrome/browser/gtk/infobar_container_gtk.cc (right): http://codereview.chromium.org/4767001/diff/38001/chrome/browser/gtk/infobar_container_gtk.cc#newcode127 chrome/browser/gtk/infobar_container_gtk.cc:127: Delegates* delegates = Details<Delegates>(details).ptr(); nit: can you ...
10 years, 1 month ago (2010-11-11 22:39:47 UTC) #7
Peter Kasting
http://codereview.chromium.org/4767001/diff/38001/chrome/browser/gtk/infobar_container_gtk.cc File chrome/browser/gtk/infobar_container_gtk.cc (right): http://codereview.chromium.org/4767001/diff/38001/chrome/browser/gtk/infobar_container_gtk.cc#newcode127 chrome/browser/gtk/infobar_container_gtk.cc:127: Delegates* delegates = Details<Delegates>(details).ptr(); On 2010/11/11 22:39:47, Evan Stade ...
10 years, 1 month ago (2010-11-11 22:47:57 UTC) #8
bulach
geolocation LGTM, and indeed the tests are much simpler. thanks, Peter!
10 years, 1 month ago (2010-11-12 12:03:10 UTC) #9
rohitrao (ping after 24h)
Mac changes LGTM awakeFromNib is called exactly once per infobar, when the view is first ...
10 years, 1 month ago (2010-11-12 13:47:38 UTC) #10
Ben Goodger (Google)
OK. I think your changes to RemoveInfoBar are valid. LGTM. http://codereview.chromium.org/4767001/diff/59001/chrome/browser/tab_contents/tab_contents.cc File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/4767001/diff/59001/chrome/browser/tab_contents/tab_contents.cc#newcode1566 ...
10 years, 1 month ago (2010-11-12 18:56:43 UTC) #11
Peter Kasting
Yet more reviewers: * Finnur: Windows/GTK extension infobars * Andrew: Mac extension infobars * Jay: ...
10 years, 1 month ago (2010-11-15 21:26:03 UTC) #12
Finnur
Looks like you have some test failures, but here are my comments. http://codereview.chromium.org/4767001/diff/118001/chrome/browser/ui/views/infobars/extension_infobar.cc File chrome/browser/ui/views/infobars/extension_infobar.cc ...
10 years, 1 month ago (2010-11-15 23:08:41 UTC) #13
Peter Kasting
10 years, 1 month ago (2010-11-16 01:36:28 UTC) #14
Sigh.  Belay this review.  The latest test failures are not easily solvable with
the current design.  I need to either move to refcounted delegates or weak
pointers.

%)&*(^#

Powered by Google App Engine
This is Rietveld 408576698