Index: chrome/browser/ui/views/location_bar/location_bar_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
index 3f2dc43dd569f30773e1c7f8130dbb77af3509b2..506b5fbc80af5717bc8805690309da174bb19dc1 100644 |
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
@@ -1097,6 +1097,16 @@ bool LocationBarView::GetBookmarkStarVisibility() { |
return star_view_->visible(); |
} |
+bool LocationBarView::TestContentSettingImagePressed(size_t index) { |
+ if (index >= content_setting_views_.size()) |
+ return false; |
+ |
+ views::View* image_view = content_setting_views_[index]; |
+ image_view->OnKeyPressed( |
+ ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_SPACE, ui::EF_NONE)); |
+ return true; |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// LocationBarView, private views::View implementation: |
@@ -1218,3 +1228,4 @@ void LocationBarView::OnTemplateURLServiceChanged() { |
if (omnibox_view_ && omnibox_view_->GetWidget()->IsActive()) |
ShowFirstRunBubble(); |
} |
+ |
tapted
2017/02/07 01:23:32
nit: remove blank line
|