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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_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/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index 1ba65d46cae8d2348fa382578da7df1704a3c625..8660f5a9170cbcbe1256d464d02b7fe3abb625d5 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -37,7 +37,7 @@ PageActionImageView::PageActionImageView(LocationBarView* owner,
// There should be an associated focus manager so that we can safely register
// accelerators for commands.
DCHECK(GetFocusManagerForAccelerator());
- SetAccessibilityFocusable(true);
+ SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
view_controller_->SetDelegate(this);
view_controller_->RegisterCommand();
set_context_menu_controller(this);

Powered by Google App Engine
This is Rietveld 408576698