Index: ui/views/controls/textfield/textfield_model.cc |
diff --git a/ui/views/controls/textfield/textfield_model.cc b/ui/views/controls/textfield/textfield_model.cc |
index bdcb55238490a0119c261a06d7c2325528842c12..e51503157490fa0c95dd9ee5baeb334ce05d00ee 100644 |
--- a/ui/views/controls/textfield/textfield_model.cc |
+++ b/ui/views/controls/textfield/textfield_model.cc |
@@ -336,9 +336,8 @@ void TextfieldModel::Append(const base::string16& new_text) { |
if (HasCompositionText()) |
ConfirmCompositionText(); |
size_t save = GetCursorPosition(); |
- MoveCursor(gfx::LINE_BREAK, |
- render_text_->GetVisualDirectionOfLogicalEnd(), |
- false); |
+ MoveCursor(gfx::LINE_BREAK, render_text_->GetVisualDirectionOfLogicalEnd(), |
+ gfx::SELECTION_NONE); |
InsertText(new_text); |
render_text_->SetCursorPosition(save); |
ClearSelection(); |
@@ -401,10 +400,10 @@ size_t TextfieldModel::GetCursorPosition() const { |
void TextfieldModel::MoveCursor(gfx::BreakType break_type, |
gfx::VisualCursorDirection direction, |
- bool select) { |
+ gfx::SelectionBehavior selection_behavior) { |
if (HasCompositionText()) |
ConfirmCompositionText(); |
- render_text_->MoveCursor(break_type, direction, select); |
+ render_text_->MoveCursor(break_type, direction, selection_behavior); |
} |
bool TextfieldModel::MoveCursorTo(const gfx::SelectionModel& cursor) { |