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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.h

Issue 1221173003: [Mac] Inform reference counted objects that hold a weak Browser* when the Browser is being destroye… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add HasWeakBrowserPointer protocol. Allow -dealloc without preceding -browserWillBeDestroyed. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller.h
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.h b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.h
index 6b8ff84708fe1f0f1577f19c4f98616acf0ed460..5c405b33496bcd6c3665f319b9a28db5b8db1f93 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.h
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.h
@@ -9,6 +9,7 @@
#include "base/mac/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
+#import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h"
#import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h"
#import "chrome/browser/ui/cocoa/url_drop_target.h"
#include "chrome/browser/ui/tabs/hover_tab_selector.h"
@@ -54,9 +55,9 @@ class WebContents;
//
// For a full description of the design, see
// http://www.chromium.org/developers/design-documents/tab-strip-mac
-@interface TabStripController :
- NSObject<TabControllerTarget,
- URLDropTargetController> {
+@interface TabStripController : NSObject<TabControllerTarget,
+ URLDropTargetController,
+ HasWeakBrowserPointer> {
@private
base::scoped_nsobject<TabStripView> tabStripView_;
NSView* switchView_; // weak

Powered by Google App Engine
This is Rietveld 408576698