Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/content_setting_image_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc |
| index b60d76758b535c8088c568eb3df845fd69c3168b..e88ab5c3f5717dfaad2fb524f3ac242e1e3be424 100644 |
| --- a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc |
| @@ -259,6 +259,10 @@ void ContentSettingImageView::OnClick() { |
| views::Widget* bubble_widget = |
| parent_->delegate()->CreateViewsBubble(bubble_view_); |
| bubble_widget->AddObserver(this); |
| + // This is triggered by an input event, the icon will be in an active state |
| + // so the bubble doesn't need an arrow. |
| + if (ui::MaterialDesignController::IsModeMaterial()) |
| + bubble_view_->SetArrowPaintType(views::BubbleBorder::PAINT_TRANSPARENT); |
|
Evan Stade
2016/03/04 04:25:14
you can put this in ContentSettingBubbleContents
|
| bubble_widget->Show(); |
| } |
| } |