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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Updates from feedback Created 3 years, 10 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
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 17dfec364cb218ce8b138dc11ea58e2a3410e41c..9459ec2bd8741a7c7a3e23d86a4e0b9f9e23d774 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1076,6 +1076,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];
Peter Kasting 2017/02/08 01:00:03 Nit: Could just inline into next line
kylix_rd 2017/02/10 22:47:48 Done.
kylix_rd 2017/02/13 17:34:54 Reverted. OnKeyPressed is moved to the protected
+ image_view->OnKeyPressed(
+ ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_SPACE, ui::EF_NONE));
Peter Kasting 2017/02/08 01:00:03 Nit: Wrong indentation (should be 4) (git cl forma
kylix_rd 2017/02/10 22:47:48 Done.
+ return true;
+}
+
////////////////////////////////////////////////////////////////////////////////
// LocationBarView, private views::View implementation:

Powered by Google App Engine
This is Rietveld 408576698