Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3290)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 776423002: The Apps ntp page should not display an avatar menu when clicking on the username. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 19b92bb4b8348ab7967c4181d0e8715c930e237a..58bb1df79c6fbb7db9293924efbc5eb93ade008f 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2399,17 +2399,6 @@ void BrowserView::UpdateAcceleratorMetrics(const ui::Accelerator& accelerator,
#endif
}
-void BrowserView::ShowAvatarBubble(WebContents* web_contents,
- const gfx::Rect& rect) {
- gfx::Point origin(rect.origin());
- views::View::ConvertPointToScreen(GetTabContentsContainerView(), &origin);
- gfx::Rect bounds(origin, rect.size());
-
- AvatarMenuBubbleView::ShowBubble(
- this, views::BubbleBorder::TOP_RIGHT, views::BubbleBorder::PAINT_NORMAL,
- views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE, bounds, browser_.get());
-}
-
void BrowserView::ShowAvatarBubbleFromAvatarButton(
AvatarBubbleMode mode,
const signin::ManageAccountsParams& manage_accounts_params) {

Powered by Google App Engine
This is Rietveld 408576698