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

Unified Diff: ui/views/controls/tree/tree_view.cc

Issue 120503005: Merge NativeTextfieldViews into views::Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix touch drag and drop unit test. Created 6 years, 11 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: ui/views/controls/tree/tree_view.cc
diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
index 62c0fa99657541243a8c20bc3893351ade294055..64ada92880abba58a855cbd14ce1314129a772d3 100644
--- a/ui/views/controls/tree/tree_view.cc
+++ b/ui/views/controls/tree/tree_view.cc
@@ -204,7 +204,7 @@ void TreeView::CommitEdit() {
DCHECK(selected_node_);
const bool editor_has_focus = editor_->HasFocus();
- model_->SetTitle(GetSelectedNode(), editor_->text());
+ model_->SetTitle(GetSelectedNode(), editor_->GetText());
CancelEdit();
if (editor_has_focus)
RequestFocus();

Powered by Google App Engine
This is Rietveld 408576698