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

Issue 6486002: [Mac] Create CrTrackingArea and use it in TabStripController. (Closed)

Created:
9 years, 10 months ago by Robert Sesek
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

[Mac] Create CrTrackingArea and use it in TabStripController. CrTrackingArea can prevent messages from being sent to the tracking area's owner, which is the source of a significant number of zombie crashes. This hopes to prevent that. BUG=48709 TEST=Crash reports go down. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74940

Patch Set 1 #

Total comments: 8

Patch Set 2 : Remove CrTrackingAreaOwnerProxy #

Patch Set 3 : Back to the proxy #

Total comments: 6

Patch Set 4 : Address comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -5 lines) Patch
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 6 chunks +8 lines, -3 lines 0 comments Download
A chrome/browser/ui/cocoa/tracking_area.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/tracking_area.mm View 1 2 3 1 chunk +105 lines, -0 lines 2 comments Download
A chrome/browser/ui/cocoa/tracking_area_unittest.mm View 1 1 chunk +86 lines, -0 lines 1 comment Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Robert Sesek
I'm only doing this to TabStripController right now to see what the effect is.
9 years, 10 months ago (2011-02-10 18:09:43 UTC) #1
Scott Hess - ex-Googler
http://codereview.chromium.org/6486002/diff/1/chrome/browser/ui/cocoa/chrome_tracking_area.h File chrome/browser/ui/cocoa/chrome_tracking_area.h (right): http://codereview.chromium.org/6486002/diff/1/chrome/browser/ui/cocoa/chrome_tracking_area.h#newcode18 chrome/browser/ui/cocoa/chrome_tracking_area.h:18: scoped_nsobject<CrTrackingAreaOwnerProxy> ownerProxy_; Rather than using |ownerProxy_|, you can override ...
9 years, 10 months ago (2011-02-11 01:17:12 UTC) #2
Robert Sesek
http://codereview.chromium.org/6486002/diff/1/chrome/browser/ui/cocoa/chrome_tracking_area.h File chrome/browser/ui/cocoa/chrome_tracking_area.h (right): http://codereview.chromium.org/6486002/diff/1/chrome/browser/ui/cocoa/chrome_tracking_area.h#newcode18 chrome/browser/ui/cocoa/chrome_tracking_area.h:18: scoped_nsobject<CrTrackingAreaOwnerProxy> ownerProxy_; On 2011/02/11 01:17:12, shess wrote: > Rather ...
9 years, 10 months ago (2011-02-11 02:30:50 UTC) #3
Robert Sesek
I've moved the file and ditched the Proxy. I also added a test that makes ...
9 years, 10 months ago (2011-02-11 19:53:58 UTC) #4
Scott Hess - ex-Googler
LGTM. I think doing it the old-fashioned way is absolutely reasonable, as it's not like ...
9 years, 10 months ago (2011-02-11 20:08:19 UTC) #5
Robert Sesek
It turns out just doing it the simple way (overriding |-owner|) does not work. The ...
9 years, 10 months ago (2011-02-14 17:28:35 UTC) #6
Scott Hess - ex-Googler
You results make me suspect that maybe when things are already tracking and the window ...
9 years, 10 months ago (2011-02-14 19:25:38 UTC) #7
Robert Sesek
On 2011/02/14 19:25:38, shess wrote: > You results make me suspect that maybe when things ...
9 years, 10 months ago (2011-02-14 20:46:35 UTC) #8
Scott Hess - ex-Googler
LGTM, with the minor nits addressed (no need to re-review, unless you want me to). ...
9 years, 10 months ago (2011-02-14 21:13:45 UTC) #9
Scott Hess - ex-Googler
Saw this when reviewing to see if any unit tests were mucking with the zombie ...
9 years, 7 months ago (2011-05-28 00:00:32 UTC) #10
Scott Hess - ex-Googler
9 years, 7 months ago (2011-05-28 00:07:59 UTC) #11
On 2011/05/28 00:00:32, shess wrote:
> Fortunately, if the zombie code _had_ kicked in, the line above "Don't crash"
> would crash :-).

Sorry, isAlive_ would prevent this.  Anyhow, I don't think the test is testing
anything.

Powered by Google App Engine
This is Rietveld 408576698