## This patch removes the focus ring from the location bar. # # Alternatively the color could be changed with focus_ring_->SetColor(SkColor). --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc @@ -169,20 +169,6 @@ LocationBarView::LocationBarView(Browser is_popup_mode_(is_popup_mode) { set_suppress_default_focus_handling(); if (!is_popup_mode_) { - views::FocusRing::Install(this); - views::FocusRing::Get(this)->SetHasFocusPredicate([](View* view) -> bool { - DCHECK(views::IsViewClass(view)); - auto* v = static_cast(view); - - // Show focus ring when the Omnibox is visibly focused and the popup is - // closed. - return v->omnibox_view_->model()->is_caret_visible() && - !v->GetOmniboxPopupView()->IsOpen(); - }); - - views::FocusRing::Get(this)->SetPathGenerator( - std::make_unique()); - #if defined(OS_MAC) geolocation_permission_observation_.Observe( g_browser_process->platform_part()->geolocation_manager());