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

Issue 267082: Makes it so when NSViewControllers go away that they remove their views from ... (Closed)

Created:
11 years, 2 months ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Makes it so when NSViewControllers go away that they remove their views from the view hierarchy before they are gone. The fix to bookmark_bar_controller.mm is the only one required to fix the bug, but the others are future proofing against the same issue. BUG=24734 TEST=Make sure we can start up with just the bookmark bar showing and quit without crashing.

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M chrome/browser/cocoa/bookmark_bar_controller.mm View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/download_shelf_controller.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/extension_shelf_controller.mm View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/find_bar_cocoa_controller.mm View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/infobar_container_controller.mm View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller.mm View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_controller.mm View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dmac
Hey folks... I can't think why this would cause problems, and can think of several ...
11 years, 2 months ago (2009-10-13 19:30:48 UTC) #1
Avi (use Gerrit)
http://codereview.chromium.org/267082/diff/1/2 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/267082/diff/1/2#newcode93 Line 93: // Remove our view from it's superview so ...
11 years, 2 months ago (2009-10-13 19:34:31 UTC) #2
rohitrao (ping after 24h)
I can't decide if this is the correct fix or just a spot-treatment of one ...
11 years, 2 months ago (2009-10-13 19:47:04 UTC) #3
dmac
On 2009/10/13 19:47:04, rohitrao wrote: > I can't decide if this is the correct fix ...
11 years, 2 months ago (2009-10-13 19:56:56 UTC) #4
rohitrao (ping after 24h)
> Rohit, the problem is that according to Apple window destruction is > non-deterministic. Bleh ...
11 years, 2 months ago (2009-10-13 20:02:11 UTC) #5
pink (ping after 24hrs)
(+mark because he's been involved in the discussions since we first discovered this "problem") We've ...
11 years, 2 months ago (2009-10-13 20:06:53 UTC) #6
Mark Mentovai
And +stuartmorgan too, he's been involved also. The only thing i have to contribute is: ...
11 years, 2 months ago (2009-10-13 20:34:32 UTC) #7
Mark Mentovai
Forget it, Stuart, I'm thinking about exceptions, and I'm not quite sure why. This thread ...
11 years, 2 months ago (2009-10-13 20:35:40 UTC) #8
pink (ping after 24hrs)
What confuses me here is that the original cl comment mentions: "This in turn caused ...
11 years, 2 months ago (2009-10-15 14:05:19 UTC) #9
pink (ping after 24hrs)
Ah ha, it's bookmark_bar_toolbar_view.mm that has the back reference that I always see. Dave: you ...
11 years, 2 months ago (2009-10-15 14:33:00 UTC) #10
Nico
See also http://codereview.chromium.org/193109 which did this for a different controller. Back then I asked if ...
11 years, 1 month ago (2009-10-24 01:20:30 UTC) #11
Nico
On 2009/10/24 01:20:30, Nico wrote: > See also http://codereview.chromium.org/193109 which did this for a different ...
11 years, 1 month ago (2009-10-24 01:30:42 UTC) #12
dmac
11 years, 1 month ago (2009-10-24 22:52:35 UTC) #13
On 2009/10/24 01:30:42, Nico wrote:
> On 2009/10/24 01:20:30, Nico wrote:
> > See also http://codereview.chromium.org/193109 which did this for a
different
> > controller. Back then I asked if we should just add this to all controllers,
> and
> > people seemed unenthusiastic. *shrug*
> > 
> > Anyway, I'm probably going to steal the bookmark_bar_controller part,
because
> it
> > makes a CL of mine not pass the trybots.
> 
> Here's the (short) discussion:
> http://code.google.com/p/chromium/issues/detail?id=13111#c17

Nico... once all my changes land, the removing of the views should no longer be
necessary. If you are going to land something, please mark it with a
TODO(dmaclach): Remove, and file a bug for me to remove it.

Powered by Google App Engine
This is Rietveld 408576698