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

Unified Diff: components/policy/core/browser/policy_error_map.cc

Issue 107383002: Use base namespace for string16 in components and cloud_print. (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
Index: components/policy/core/browser/policy_error_map.cc
diff --git a/components/policy/core/browser/policy_error_map.cc b/components/policy/core/browser/policy_error_map.cc
index 0c358c5af420c14ee33678f3f246afcdee5c0ac4..95708ac70d104ef58ffd07084b589640f84d1566 100644
--- a/components/policy/core/browser/policy_error_map.cc
+++ b/components/policy/core/browser/policy_error_map.cc
@@ -92,10 +92,10 @@ void PolicyErrorMap::AddError(const std::string& policy,
AddError(PendingError(policy, std::string(), index, message_id, replacement));
}
-string16 PolicyErrorMap::GetErrors(const std::string& policy) {
+base::string16 PolicyErrorMap::GetErrors(const std::string& policy) {
CheckReadyAndConvert();
std::pair<const_iterator, const_iterator> range = map_.equal_range(policy);
- std::vector<string16> list;
+ std::vector<base::string16> list;
for (const_iterator it = range.first; it != range.second; ++it)
list.push_back(it->second);
return JoinString(list, '\n');
@@ -135,14 +135,14 @@ void PolicyErrorMap::AddError(const PendingError& error) {
}
void PolicyErrorMap::Convert(const PendingError& error) {
- string16 submessage;
+ base::string16 submessage;
if (error.has_replacement) {
submessage = l10n_util::GetStringFUTF16(error.message_id,
ASCIIToUTF16(error.replacement));
} else {
submessage = l10n_util::GetStringUTF16(error.message_id);
}
- string16 message;
+ base::string16 message;
if (!error.subkey.empty()) {
message = l10n_util::GetStringFUTF16(IDS_POLICY_SUBKEY_ERROR,
ASCIIToUTF16(error.subkey),
« no previous file with comments | « components/policy/core/browser/policy_error_map.h ('k') | components/policy/core/common/registry_dict_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698