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

Unified Diff: content/renderer/android/email_detector.cc

Issue 2740673002: Prepare Chromium and Blink for ICU 59 (Closed)
Patch Set: revert accidental revert of sftnly roll during rebase Created 3 years, 9 months 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
Index: content/renderer/android/email_detector.cc
diff --git a/content/renderer/android/email_detector.cc b/content/renderer/android/email_detector.cc
index 564f3417305fc2c398de64931377835829b62fdb..1a0db8b07a850ec383b75e0be6dc209e16e43fbf 100644
--- a/content/renderer/android/email_detector.cc
+++ b/content/renderer/android/email_detector.cc
@@ -62,8 +62,8 @@ bool EmailDetector::FindContent(const base::string16::const_iterator& begin,
DCHECK(U_SUCCESS(status));
icu::UnicodeString content_ustr(matcher->group(status));
DCHECK(U_SUCCESS(status));
- base::UTF16ToUTF8(content_ustr.getBuffer(), content_ustr.length(),
- content_text);
+ content_text->clear();
+ content_ustr.toUTF8String(*content_text);
return true;
}
« no previous file with comments | « content/browser/android/date_time_chooser_android.cc ('k') | ios/chrome/browser/notification_promo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698