| Index: base/i18n/message_formatter.cc
|
| diff --git a/base/i18n/message_formatter.cc b/base/i18n/message_formatter.cc
|
| index 702e51b94aaaf2eb30f3c9364daa6fbb8f84bc0c..6962a28297553a418d680750df9c4231f2156e56 100644
|
| --- a/base/i18n/message_formatter.cc
|
| +++ b/base/i18n/message_formatter.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "base/i18n/message_formatter.h"
|
|
|
| +#include "base/i18n/unicodestring.h"
|
| #include "base/logging.h"
|
| #include "base/numerics/safe_conversions.h"
|
| #include "base/time/time.h"
|
| @@ -91,7 +92,7 @@ string16 MessageFormatter::FormatWithNumberedArgs(
|
| << u_errorName(error);
|
| return string16();
|
| }
|
| - return string16(formatted.getBuffer(), formatted.length());
|
| + return i18n::UnicodeStringToString16(formatted);
|
| }
|
|
|
| string16 MessageFormatter::FormatWithNamedArgs(
|
| @@ -134,7 +135,7 @@ string16 MessageFormatter::FormatWithNamedArgs(
|
| << u_errorName(error);
|
| return string16();
|
| }
|
| - return string16(formatted.getBuffer(), formatted.length());
|
| + return i18n::UnicodeStringToString16(formatted);
|
| }
|
|
|
| } // namespace i18n
|
|
|