Commit 0e6e9217 authored by btolsch's avatar btolsch Committed by Commit Bot

Check WebContents* in LocationBarView::ShowPageInfoDialog

Bug: 828704
Change-Id: I1263e0bc2520b7b5f110ac2ae0ac92e3db8e2fd9
Reviewed-on: https://chromium-review.googlesource.com/999310Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Brandon Tolsch <btolsch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551484}
parent f0acd4fc
...@@ -72,7 +72,10 @@ SkColor LocationIconView::GetTextColor() const { ...@@ -72,7 +72,10 @@ SkColor LocationIconView::GetTextColor() const {
} }
bool LocationIconView::ShowBubble(const ui::Event& event) { bool LocationIconView::ShowBubble(const ui::Event& event) {
return location_bar_->ShowPageInfoDialog(location_bar_->GetWebContents()); auto* contents = location_bar_->GetWebContents();
if (!contents)
return false;
return location_bar_->ShowPageInfoDialog(contents);
} }
void LocationIconView::GetAccessibleNodeData(ui::AXNodeData* node_data) { void LocationIconView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment