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

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

Issue 102593002: Convert string16 to base::string16 in content. (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 | « content/renderer/android/address_detector.h ('k') | content/renderer/android/content_detector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/address_detector.cc
diff --git a/content/renderer/android/address_detector.cc b/content/renderer/android/address_detector.cc
index afc7ab6c3016b9bd619d938fd6de17289178da96..fdc70b136aebd6f9878609a95beee2c7568809d6 100644
--- a/content/renderer/android/address_detector.cc
+++ b/content/renderer/android/address_detector.cc
@@ -36,20 +36,23 @@ size_t AddressDetector::GetMaximumContentLength() {
return kMaxAddressLength;
}
-std::string AddressDetector::GetContentText(const string16& text) {
+std::string AddressDetector::GetContentText(const base::string16& text) {
// Get the address and replace unicode bullets with commas.
- string16 address_16 = CollapseWhitespace(text, false);
+ base::string16 address_16 = CollapseWhitespace(text, false);
std::replace(address_16.begin(), address_16.end(),
static_cast<char16>(0x2022), static_cast<char16>(','));
return UTF16ToUTF8(address_16);
}
-bool AddressDetector::FindContent(const string16::const_iterator& begin,
- const string16::const_iterator& end, size_t* start_pos, size_t* end_pos,
+bool AddressDetector::FindContent(
+ const base::string16::const_iterator& begin,
+ const base::string16::const_iterator& end,
+ size_t* start_pos,
+ size_t* end_pos,
std::string* content_text) {
if (address_parser::FindAddress(begin, end, start_pos, end_pos)) {
content_text->assign(
- GetContentText(string16(begin + *start_pos, begin + *end_pos)));
+ GetContentText(base::string16(begin + *start_pos, begin + *end_pos)));
return true;
}
return false;
« no previous file with comments | « content/renderer/android/address_detector.h ('k') | content/renderer/android/content_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698