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

Unified Diff: chrome/browser/ui/views/page_info/page_info_bubble_view.cc

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Rebased and applied tapted's changes Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/views/page_info/page_info_bubble_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/page_info/page_info_bubble_view.cc
diff --git a/chrome/browser/ui/views/page_info/page_info_bubble_view.cc b/chrome/browser/ui/views/page_info/page_info_bubble_view.cc
index 930472892d7068c718a2cbfaaa7f0bce1c7d2fd6..2d10ed71e2702c2a5ffa8969ff0c9fcd3e78edf5 100644
--- a/chrome/browser/ui/views/page_info/page_info_bubble_view.cc
+++ b/chrome/browser/ui/views/page_info/page_info_bubble_view.cc
@@ -386,7 +386,7 @@ int InternalPageInfoBubbleView::GetDialogButtons() const {
PageInfoBubbleView::~PageInfoBubbleView() {}
// static
-void PageInfoBubbleView::ShowBubble(
+views::BubbleDialogDelegateView* PageInfoBubbleView::ShowBubble(
views::View* anchor_view,
views::WidgetObserver* widget_observer,
const gfx::Rect& anchor_rect,
@@ -408,7 +408,7 @@ void PageInfoBubbleView::ShowBubble(
if (widget_observer)
bubble->GetWidget()->AddObserver(widget_observer);
bubble->GetWidget()->Show();
- return;
+ return bubble;
}
PageInfoBubbleView* bubble = new PageInfoBubbleView(
anchor_view, parent_window, profile, web_contents, url, security_info);
@@ -417,6 +417,7 @@ void PageInfoBubbleView::ShowBubble(
if (widget_observer)
bubble->GetWidget()->AddObserver(widget_observer);
bubble->GetWidget()->Show();
+ return bubble;
}
// static
« no previous file with comments | « chrome/browser/ui/views/page_info/page_info_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698