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

Unified Diff: chrome/browser/chromeos/system/timezone_util.cc

Issue 1200393002: Add more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string
Patch Set: Android Created 5 years, 6 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 | « chrome/browser/chromeos/login/test/oobe_base_test.cc ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system/timezone_util.cc
diff --git a/chrome/browser/chromeos/system/timezone_util.cc b/chrome/browser/chromeos/system/timezone_util.cc
index 52bc6b98d30e11c6ba689f823578c9deb6629539..56124c0e084ed8514fcac86d25358c3be321f155 100644
--- a/chrome/browser/chromeos/system/timezone_util.cc
+++ b/chrome/browser/chromeos/system/timezone_util.cc
@@ -65,7 +65,7 @@ base::string16 GetExemplarCity(const icu::TimeZone& zone) {
zone_id.toUTF8String(zone_id_str);
// Resource keys for timezones use ':' in place of '/'.
- ReplaceSubstringsAfterOffset(&zone_id_str, 0, "/", ":");
+ base::ReplaceSubstringsAfterOffset(&zone_id_str, 0, "/", ":");
scoped_ptr<UResourceBundle, UResClose> zone_item(
ures_getByKey(zone_strings, zone_id_str.c_str(), NULL, &status));
icu::UnicodeString city;
@@ -76,7 +76,7 @@ base::string16 GetExemplarCity(const icu::TimeZone& zone) {
}
// Fallback case in case of failure.
- ReplaceSubstringsAfterOffset(&zone_id_str, 0, ":", "/");
+ base::ReplaceSubstringsAfterOffset(&zone_id_str, 0, ":", "/");
// Take the last component of a timezone id (e.g. 'Baz' in 'Foo/Bar/Baz').
// Depending on timezones, keeping all but the 1st component
// (e.g. Bar/Baz) may be better, but our current list does not have
@@ -85,7 +85,7 @@ base::string16 GetExemplarCity(const icu::TimeZone& zone) {
if (slash_pos != std::string::npos && slash_pos < zone_id_str.size())
zone_id_str.erase(0, slash_pos + 1);
// zone id has '_' in place of ' '.
- ReplaceSubstringsAfterOffset(&zone_id_str, 0, "_", " ");
+ base::ReplaceSubstringsAfterOffset(&zone_id_str, 0, "_", " ");
return base::ASCIIToUTF16(zone_id_str);
}
« no previous file with comments | « chrome/browser/chromeos/login/test/oobe_base_test.cc ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698