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

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 1877143002: Convert ToolbarActionsBarBubbleViews to BubbleDialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix layout Created 4 years, 8 months 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/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index 90ed0b1ece5b86fd4830b301b698f69bc1a5024a..ec72cdb5759694ec42addbff2ae9f3369198bcbe 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -328,10 +328,10 @@ void BrowserActionsContainer::ShowToolbarActionBubble(
ToolbarActionsBarBubbleViews* bubble =
new ToolbarActionsBarBubbleViews(anchor_view, std::move(controller));
- views::BubbleDelegateView::CreateBubble(bubble);
- active_bubble_ = bubble;
- active_bubble_->GetWidget()->AddObserver(this);
+ views::BubbleDialogDelegateView::CreateBubble(bubble);
+ bubble->GetWidget()->AddObserver(this);
bubble->Show();
+ active_bubble_ = bubble;
Devlin 2016/04/13 22:36:53 nit: I seem to recall once running into some edge
Evan Stade 2016/04/14 00:37:08 Done.
}
void BrowserActionsContainer::OnWidgetClosing(views::Widget* widget) {

Powered by Google App Engine
This is Rietveld 408576698