| Index: ui/gfx/text_elider.cc
|
| diff --git a/ui/gfx/text_elider.cc b/ui/gfx/text_elider.cc
|
| index cee598d844222c2417dfb009be75b71836bc76f0..2b22a57a19d0fdab152f50c063cee2293c9e0d2f 100644
|
| --- a/ui/gfx/text_elider.cc
|
| +++ b/ui/gfx/text_elider.cc
|
| @@ -778,7 +778,8 @@ base::string16 TruncateString(const base::string16& string,
|
| icu::Locale::getDefault(), status));
|
| if (U_FAILURE(status))
|
| return string.substr(0, length - 1) + kElideString;
|
| - bi->setText(string.c_str());
|
| + icu::UnicodeString bi_text(string.c_str());
|
| + bi->setText(bi_text);
|
| index = bi->preceding(static_cast<int32_t>(length));
|
| if (index == icu::BreakIterator::DONE || index == 0) {
|
| // We either found no valid word break at all, or one right at the
|
|
|