Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
index 485ebb18260378ec168646d5fd08dba0d31c2709..8c388b1aa25645ad5f03256ca10c667ddd008f2f 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
@@ -89,20 +89,6 @@ const int kBookmarkAppBubbleViewHeight = 46; |
const int kIconPreviewTargetSize = 64; |
-NSPoint GetPointForBubble(content::WebContents* web_contents, |
- int x_offset, |
- int y_offset) { |
- NSView* view = web_contents->GetNativeView(); |
- NSRect bounds = [view bounds]; |
- NSPoint point; |
- point.x = NSMinX(bounds) + x_offset; |
- // The view's origin is at the bottom but |rect|'s origin is at the top. |
- point.y = NSMaxY(bounds) - y_offset; |
- point = [view convertPoint:point toView:nil]; |
- point = [[view window] convertBaseToScreen:point]; |
- return point; |
-} |
- |
} // namespace |
BrowserWindowCocoa::BrowserWindowCocoa(Browser* browser, |
@@ -778,18 +764,6 @@ NSWindow* BrowserWindowCocoa::window() const { |
return [controller_ window]; |
} |
-void BrowserWindowCocoa::ShowAvatarBubble(WebContents* web_contents, |
- const gfx::Rect& rect) { |
- NSPoint point = GetPointForBubble(web_contents, rect.right(), rect.bottom()); |
- |
- // |menu| will automatically release itself on close. |
- AvatarMenuBubbleController* menu = |
- [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
- anchoredAt:point]; |
- [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
- [menu showWindow:nil]; |
-} |
- |
void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton( |
AvatarBubbleMode mode, |
const signin::ManageAccountsParams& manage_accounts_params) { |