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 bb7929e84c17c95c4d30ce892b8e413b889574d9..bf51f5c80ee813615cece0f4df55097af306d7fa 100644 |
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
@@ -678,6 +678,7 @@ void LocationBarView::RefreshLocationIcon() { |
: GetSecureTextColor(security_level); |
location_icon_view_->SetImage(gfx::CreateVectorIcon( |
omnibox_view_->GetVectorIcon(), kIconWidth, icon_color)); |
+ location_icon_view_->SetEnabled(!omnibox_view_->IsEditingOrEmpty()); |
} |
bool LocationBarView::RefreshContentSettingViews() { |
@@ -912,6 +913,7 @@ bool LocationBarView::TestContentSettingImagePressed(size_t index) { |
// This up-cast is necessary since the descendant class moved OnKeyPressed |
// to the protected section. |
views::View* image_view = content_setting_views_[index]; |
+ image_view->SetSize(gfx::Size(24, 24)); |
image_view->OnKeyReleased( |
ui::KeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_SPACE, ui::EF_NONE)); |
return true; |