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

Unified Diff: ui/views/controls/link.cc

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class 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: ui/views/controls/link.cc
diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
index 5a5729acc9717213a8a200aacc2c60f206f9650f..d02a0b89c73b17903743a0d3e3b8621d5d2bea7d 100644
--- a/ui/views/controls/link.cc
+++ b/ui/views/controls/link.cc
@@ -205,7 +205,7 @@ void Link::Init() {
SetPressedColor(SK_ColorRED);
#endif
RecalculateFont();
- set_focusable(true);
+ SetFocusable(true);
}
void Link::SetPressed(bool pressed) {

Powered by Google App Engine
This is Rietveld 408576698