Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: base/i18n/icu_string_conversions.cc

Issue 109863003: Use StringPiece for UTF string conversions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/jni_string.cc ('k') | base/strings/utf_string_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/icu_string_conversions.cc
diff --git a/base/i18n/icu_string_conversions.cc b/base/i18n/icu_string_conversions.cc
index 1530117f1e4a9d7aa1874425a7585c0653aaff10..673d25bac5ce1182f571fd9b66a312b400013833 100644
--- a/base/i18n/icu_string_conversions.cc
+++ b/base/i18n/icu_string_conversions.cc
@@ -285,8 +285,7 @@ bool ConvertToUtf8AndNormalize(const std::string& text,
return false;
normalized_utf16.assign(buffer.get(), actual_length);
- return UTF16ToUTF8(normalized_utf16.data(),
- normalized_utf16.length(), result);
+ return UTF16ToUTF8(normalized_utf16, result);
}
} // namespace base
« no previous file with comments | « base/android/jni_string.cc ('k') | base/strings/utf_string_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698