| Index: chrome/browser/ui/cocoa/web_intent_bubble_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/web_intent_bubble_controller.mm b/chrome/browser/ui/cocoa/web_intent_bubble_controller.mm
|
| index ffe455ed222e4203b08cef169686a3b6d0c0770d..e08cc45bf22fb1a803de538f8b9e53f53b94e591 100644
|
| --- a/chrome/browser/ui/cocoa/web_intent_bubble_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/web_intent_bubble_controller.mm
|
| @@ -81,6 +81,15 @@ const CGFloat kTextWidth = kWindowWidth - (kImageSize + kImageSpacing +
|
| return self;
|
| }
|
|
|
| +- (void)setServiceURLs:(NSArray*)urls {
|
| + serviceURLs_.reset([urls retain]);
|
| +
|
| + if ([iconImages_ count] < [serviceURLs_ count])
|
| + [iconImages_ setCount:[serviceURLs_ count]];
|
| +
|
| + [self performLayout];
|
| +}
|
| +
|
| - (void)replaceImageAtIndex:(size_t)index withImage:(NSImage*)image {
|
| if ([iconImages_ count] <= index)
|
| [iconImages_ setCount:index + 1];
|
| @@ -232,6 +241,8 @@ const CGFloat kTextWidth = kWindowWidth - (kImageSize + kImageSpacing +
|
| [cell setEnabled:YES];
|
|
|
| [matrix putCell:cell atRow:(i / iconsPerRow) column:(i % iconsPerRow)];
|
| + if (serviceURLs_ && [serviceURLs_ count] >= i)
|
| + [matrix setToolTip:[serviceURLs_ objectAtIndex:i] forCell:cell];
|
| }
|
|
|
| [subviews addObject:matrix];
|
|
|