| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 4163c40a3742095f01fec3da7cf14d44db94aae4..76be4f3fa74e29e38cd0495b844159c8f9f7f337 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -1808,11 +1808,15 @@ void Textfield::ExecuteTextEditCommand(ui::TextEditCommand command) {
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // Textfield, private:
|
|
|
| -void Textfield::AccessibilitySetValue(const base::string16& new_value) {
|
| - if (!read_only()) {
|
| +void Textfield::AccessibilitySetValue(const base::string16& new_value,
|
| + bool replace) {
|
| + if (read_only())
|
| + return;
|
| + if (replace)
|
| + InsertOrReplaceText(new_value);
|
| + else
|
| SetText(new_value);
|
| - ClearSelection();
|
| - }
|
| + ClearSelection();
|
| }
|
|
|
| void Textfield::UpdateBackgroundColor() {
|
|
|