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

Unified Diff: chrome/browser/ui/cocoa/tracking_area.mm

Issue 6480067: [Mac] Placate Clang's (pedantic) warning about CrTrackingArea's initializer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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/tracking_area.mm
diff --git a/chrome/browser/ui/cocoa/tracking_area.mm b/chrome/browser/ui/cocoa/tracking_area.mm
index 692515fdbeca4a391dd7f63dd14db7b86fc79641..cd3e9ed7530e6bd86047b90da328f8711168dcfb 100644
--- a/chrome/browser/ui/cocoa/tracking_area.mm
+++ b/chrome/browser/ui/cocoa/tracking_area.mm
@@ -69,7 +69,7 @@
- (id)initWithRect:(NSRect)rect
options:(NSTrackingAreaOptions)options
- owner:(id)owner
+ proxiedOwner:(id)owner
userInfo:(NSDictionary*)userInfo {
scoped_nsobject<CrTrackingAreaOwnerProxy> ownerProxy(
[[CrTrackingAreaOwnerProxy alloc] initWithOwner:owner]);
@@ -82,6 +82,15 @@
return self;
}
+- (NSTrackingArea*)initWithRect:(NSRect)rect
+ options:(NSTrackingAreaOptions)options
+ owner:(id)owner
+ userInfo:(NSDictionary*)userInfo {
+ [NSException raise:@"org.chromium.CrTrackingArea"
+ format:@"Cannot init a CrTrackingArea with NSTrackingArea's initializer"];
+ return nil;
+}
+
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];

Powered by Google App Engine
This is Rietveld 408576698