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

Unified Diff: content/browser/android/date_time_chooser_android.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
« no previous file with comments | « components/bookmarks/browser/titled_url_index.cc ('k') | content/renderer/android/email_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/date_time_chooser_android.cc
diff --git a/content/browser/android/date_time_chooser_android.cc b/content/browser/android/date_time_chooser_android.cc
index ba20ad53bd5cf1854e435094482dde0273f12f64..28b6d03344f055a7b09306aba9fff8970d38add2 100644
--- a/content/browser/android/date_time_chooser_android.cc
+++ b/content/browser/android/date_time_chooser_android.cc
@@ -9,6 +9,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/i18n/char_iterator.h"
+#include "base/i18n/unicodestring.h"
#include "content/common/date_time_suggestion.h"
#include "content/common/view_messages.h"
#include "content/public/browser/render_view_host.h"
@@ -36,8 +37,7 @@ base::string16 SanitizeSuggestionString(const base::string16& string) {
sanitized.append(c);
sanitized_iterator.Advance();
}
- return base::string16(sanitized.getBuffer(),
- static_cast<size_t>(sanitized.length()));
+ return base::i18n::UnicodeStringToString16(sanitized);
}
} // namespace
« no previous file with comments | « components/bookmarks/browser/titled_url_index.cc ('k') | content/renderer/android/email_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698