summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_button_cell.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/bookmark_button_cell.mm')
-rw-r--r--chrome/browser/cocoa/bookmark_button_cell.mm14
1 files changed, 2 insertions, 12 deletions
diff --git a/chrome/browser/cocoa/bookmark_button_cell.mm b/chrome/browser/cocoa/bookmark_button_cell.mm
index f769938..edae5f9 100644
--- a/chrome/browser/cocoa/bookmark_button_cell.mm
+++ b/chrome/browser/cocoa/bookmark_button_cell.mm
@@ -105,19 +105,9 @@
withString:@" "];
title = [title stringByReplacingOccurrencesOfString:@"\r"
withString:@" "];
- // Center the image if we have a title, or if there already was a
- // title set.
- BOOL hasTitle = (([title length] > 0) ||
- ([[self title] length] > 0));
- if (image) {
+ [self setImagePosition:NSImageLeft];
+ if (image)
[self setImage:image];
- if (hasTitle) {
- [self setImagePosition:NSImageLeft];
- } else {
- [self setImagePosition:NSImageOnly];
- }
- }
-
if (title)
[self setTitle:title];
}