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

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

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
index 8f661434b3a7d5c0eaf941d9d04e7c0df7b03a32..b185b8e9f30c1f9be60317bb2228a53b2393ccb8 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -35,7 +35,7 @@ LocationIconView::LocationIconView(const gfx::FontList& font_list,
suppress_mouse_released_action_(false),
location_bar_(location_bar) {
set_id(VIEW_ID_LOCATION_ICON);
- SetFocusable(true);
+ SetFocusBehavior(FocusBehavior::ALWAYS);
SetBackground(false);
}

Powered by Google App Engine
This is Rietveld 408576698