diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-09 20:08:15 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-09 20:08:15 +0000 |
commit | f2ec431286de32d37ad35230cc232c508b2cb9bd (patch) | |
tree | 102f5d543214f7061d2319a838d301a270fe67f4 | |
parent | 08af802f7ebb68d22853308628da5a870093de14 (diff) | |
download | chromium_src-f2ec431286de32d37ad35230cc232c508b2cb9bd.zip chromium_src-f2ec431286de32d37ad35230cc232c508b2cb9bd.tar.gz chromium_src-f2ec431286de32d37ad35230cc232c508b2cb9bd.tar.bz2 |
NSColor* and NSSize arguments are a problem with receivers held by
scoped_nsobject<> when using the 10.6 SDK.
TEST=Compile with 10.6 SDK
BUG=35569, 35578 (sort of)
Review URL: http://codereview.chromium.org/6657008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77509 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm index c4cb727..5efe1cc 100644 --- a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm +++ b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm @@ -71,8 +71,9 @@ const NSTimeInterval kWindowFadeAnimationDuration = 0.2; scoped_nsobject<NSMutableAttributedString> attrString( [[NSMutableAttributedString alloc] initWithString:text]); scoped_nsobject<NSShadow> textShadow([[NSShadow alloc] init]); - [textShadow setShadowColor:[NSColor colorWithCalibratedWhite:0 alpha:0.6]]; - [textShadow setShadowOffset:NSMakeSize(0, -1)]; + [textShadow.get() setShadowColor:[NSColor colorWithCalibratedWhite:0 + alpha:0.6]]; + [textShadow.get() setShadowOffset:NSMakeSize(0, -1)]; [textShadow setShadowBlurRadius:1.0]; [attrString addAttribute:NSShadowAttributeName value:textShadow |