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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_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_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 4b5a4a078962680712ef4a4ccddacfd44c798a0d..6b4235d1f1b8bcacf45da01c17582ccdf9de49a4 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -229,7 +229,7 @@ void LocationBarView::Init() {
omnibox_view_ = new OmniboxViewViews(
this, profile(), command_updater(), is_popup_mode_, this, font_list);
omnibox_view_->Init();
- omnibox_view_->SetFocusable(true);
+ omnibox_view_->SetFocusBehavior(FocusBehavior::ALWAYS);
AddChildView(omnibox_view_);
// Initialize the inline autocomplete view which is visible only when IME is

Powered by Google App Engine
This is Rietveld 408576698