Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm |
index 6aaab33716e4c4ff0b618709448ed647c3bd1e5c..a37729586a2b71fe730d38e98517516cb860bf33 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm |
@@ -215,7 +215,8 @@ const int kHierarchyButtonXMargin = 4; |
// We must reapply the text color after any setTitle: call |
- (void)applyTextColor { |
- scoped_nsobject<NSMutableParagraphStyle> style([NSMutableParagraphStyle new]); |
+ base::scoped_nsobject<NSMutableParagraphStyle> style( |
+ [NSMutableParagraphStyle new]); |
[style setAlignment:NSLeftTextAlignment]; |
NSDictionary* dict = [NSDictionary |
dictionaryWithObjectsAndKeys:textColor_, |
@@ -224,9 +225,8 @@ const int kHierarchyButtonXMargin = 4; |
style.get(), NSParagraphStyleAttributeName, |
[NSNumber numberWithFloat:0.2], NSKernAttributeName, |
nil]; |
- scoped_nsobject<NSAttributedString> ats([[NSAttributedString alloc] |
- initWithString:[self title] |
- attributes:dict]); |
+ base::scoped_nsobject<NSAttributedString> ats( |
+ [[NSAttributedString alloc] initWithString:[self title] attributes:dict]); |
[self setAttributedTitle:ats.get()]; |
} |