Index: views/controls/textfield/textfield_views_model.cc |
diff --git a/views/controls/textfield/textfield_views_model.cc b/views/controls/textfield/textfield_views_model.cc |
index 50d966262edae8d4efa250858fc6eaa7436c41c1..a50fc01c0686b9595e4ced2e0e2e102f1c01963b 100644 |
--- a/views/controls/textfield/textfield_views_model.cc |
+++ b/views/controls/textfield/textfield_views_model.cc |
@@ -431,7 +431,7 @@ void TextfieldViewsModel::MoveCursorToPreviousWord(bool select) { |
// This is probably fast enough for our usage, but we may |
// want to modify WordIterator so that it can start from the |
// middle of string and advance backwards. |
- base::i18n::BreakIterator iter(&text_, base::i18n::BreakIterator::BREAK_WORD); |
+ base::i18n::BreakIterator iter(text_, base::i18n::BreakIterator::BREAK_WORD); |
bool success = iter.Init(); |
DCHECK(success); |
if (!success) |
@@ -463,7 +463,7 @@ void TextfieldViewsModel::MoveCursorToPreviousWord(bool select) { |
void TextfieldViewsModel::MoveCursorToNextWord(bool select) { |
if (HasCompositionText()) |
ConfirmCompositionText(); |
- base::i18n::BreakIterator iter(&text_, base::i18n::BreakIterator::BREAK_WORD); |
+ base::i18n::BreakIterator iter(text_, base::i18n::BreakIterator::BREAK_WORD); |
bool success = iter.Init(); |
DCHECK(success); |
if (!success) |