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

Unified Diff: ui/base/resource/resource_bundle.cc

Issue 100303003: Move more uses of string16 to specify base:: (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 | « ui/base/resource/resource_bundle.h ('k') | ui/base/text/bytes_formatting.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.cc
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
index 8b622ccd4642cff99412ae82acce99207f63c35b..b5f8f6138d17026545e4d70b0e7cafe29c60ad48 100644
--- a/ui/base/resource/resource_bundle.cc
+++ b/ui/base/resource/resource_bundle.cc
@@ -442,8 +442,8 @@ base::StringPiece ResourceBundle::GetRawDataResourceForScale(
return base::StringPiece();
}
-string16 ResourceBundle::GetLocalizedString(int message_id) {
- string16 string;
+base::string16 ResourceBundle::GetLocalizedString(int message_id) {
+ base::string16 string;
if (delegate_ && delegate_->GetLocalizedString(message_id, &string))
return string;
@@ -455,7 +455,7 @@ string16 ResourceBundle::GetLocalizedString(int message_id) {
// string (better than crashing).
if (!locale_resources_data_.get()) {
LOG(WARNING) << "locale resources are not loaded";
- return string16();
+ return base::string16();
}
base::StringPiece data;
@@ -465,7 +465,7 @@ string16 ResourceBundle::GetLocalizedString(int message_id) {
data = GetRawDataResource(message_id);
if (data.empty()) {
NOTREACHED() << "unable to find resource: " << message_id;
- return string16();
+ return base::string16();
}
}
@@ -476,10 +476,10 @@ string16 ResourceBundle::GetLocalizedString(int message_id) {
<< "requested localized string from binary pack file";
// Data pack encodes strings as either UTF8 or UTF16.
- string16 msg;
+ base::string16 msg;
if (encoding == ResourceHandle::UTF16) {
- msg = string16(reinterpret_cast<const char16*>(data.data()),
- data.length() / 2);
+ msg = base::string16(reinterpret_cast<const base::char16*>(data.data()),
+ data.length() / 2);
} else if (encoding == ResourceHandle::UTF8) {
msg = UTF8ToUTF16(data);
}
« no previous file with comments | « ui/base/resource/resource_bundle.h ('k') | ui/base/text/bytes_formatting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698