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

Unified Diff: ui/views/controls/combobox/combobox.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/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index a90275329aa1912778bc8d2a8d587c189f8daaf6..370ba4ea653f69ce888c7b311a5f7163783d5150 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -100,7 +100,7 @@ Combobox::Combobox(ui::ComboboxModel* model)
dropdown_open_(false) {
model_->AddObserver(this);
UpdateFromModel();
- set_focusable(true);
+ SetFocusable(true);
set_border(text_border_);
}

Powered by Google App Engine
This is Rietveld 408576698