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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.cc

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years 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/toolbar/toolbar_button.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
index 053dea04234ba2fcb7685a3e8ec28e599a50666e..9d92fd4ced62398191a27dde434070fc614342e5 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
@@ -32,7 +32,7 @@ ToolbarButton::~ToolbarButton() {
}
void ToolbarButton::Init() {
- set_focusable(true);
+ SetFocusable(true);
// Provides the hover/pressed style used by buttons in the toolbar.
views::LabelButtonBorder* border =

Powered by Google App Engine
This is Rietveld 408576698