Index: chrome/browser/cocoa/bookmark_bar_toolbar_view.mm |
=================================================================== |
--- chrome/browser/cocoa/bookmark_bar_toolbar_view.mm (revision 30216) |
+++ chrome/browser/cocoa/bookmark_bar_toolbar_view.mm (working copy) |
@@ -36,24 +36,6 @@ |
} |
} |
-- (void)layoutViews { |
- if ([controller_ drawAsFloatingBar]) { |
- // The internal bookmark bar should have padding to center it. |
- NSRect frame = [self frame]; |
- [buttonView_ setFrame: |
- NSMakeRect(bookmarks::kNTPBookmarkBarPadding, |
- bookmarks::kNTPBookmarkBarPadding, |
- NSWidth(frame) - |
- bookmarks::kNTPBookmarkBarPadding, |
- NSHeight(frame) - |
- bookmarks::kNTPBookmarkBarPadding)]; |
- } else { |
- // The frame of our child should be equal to our frame. |
- NSRect frame = [self frame]; |
- [buttonView_ setFrame:NSMakeRect(0, 0, NSWidth(frame), NSHeight(frame))]; |
- } |
-} |
- |
- (void)drawRectAsFloating:(NSRect)rect { |
NSRect bounds = [self bounds]; |