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

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

Issue 2899583002: issue2882533003_180001.diff.txt (patch set 6)
Patch Set: DIFF 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 b5eb49564a9f61733015fa7b016482632ae1d627..1bdb00781845be604aa7ebf770b960997f856f15 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
@@ -385,7 +385,7 @@ int InternalPageInfoBubbleView::GetDialogButtons() const {
PageInfoBubbleView::~PageInfoBubbleView() {}
// static
-void PageInfoBubbleView::ShowBubble(
+views::BubbleDialogDelegateView* PageInfoBubbleView::ShowBubble(
views::View* anchor_view,
const gfx::Rect& anchor_rect,
Profile* profile,
@@ -404,13 +404,15 @@ void PageInfoBubbleView::ShowBubble(
if (!anchor_view)
bubble->SetAnchorRect(anchor_rect);
bubble->GetWidget()->Show();
- return;
+ return bubble;
}
PageInfoBubbleView* bubble = new PageInfoBubbleView(
anchor_view, parent_window, profile, web_contents, url, security_info);
if (!anchor_view)
bubble->SetAnchorRect(anchor_rect);
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