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

Unified Diff: chrome/browser/policy/policy_error_map.cc

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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/policy/policy_error_map.h ('k') | chrome/browser/policy/policy_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_error_map.cc
diff --git a/chrome/browser/policy/policy_error_map.cc b/chrome/browser/policy/policy_error_map.cc
index 4031390f8c47e2fa511fd797284ffe3ef0509bf5..5dc54b42da90123cf4fe9b8c55e902dca9ddd37a 100644
--- a/chrome/browser/policy/policy_error_map.cc
+++ b/chrome/browser/policy/policy_error_map.cc
@@ -15,7 +15,7 @@
namespace policy {
struct PolicyErrorMap::PendingError {
- PendingError(ConfigurationPolicyType policy,
+ PendingError(const std::string& policy,
const std::string& subkey,
int message_id,
const std::string& replacement)
@@ -25,7 +25,7 @@ struct PolicyErrorMap::PendingError {
has_replacement(true),
replacement(replacement) {}
- PendingError(ConfigurationPolicyType policy,
+ PendingError(const std::string& policy,
const std::string& subkey,
int message_id)
: policy(policy),
@@ -33,7 +33,7 @@ struct PolicyErrorMap::PendingError {
message_id(message_id),
has_replacement(false) {}
- ConfigurationPolicyType policy;
+ std::string policy;
std::string subkey;
int message_id;
bool has_replacement;
@@ -50,30 +50,30 @@ bool PolicyErrorMap::IsReady() const {
return ui::ResourceBundle::HasSharedInstance();
}
-void PolicyErrorMap::AddError(ConfigurationPolicyType policy, int message_id) {
+void PolicyErrorMap::AddError(const std::string& policy, int message_id) {
AddError(PendingError(policy, std::string(), message_id));
}
-void PolicyErrorMap::AddError(ConfigurationPolicyType policy,
+void PolicyErrorMap::AddError(const std::string& policy,
const std::string& subkey,
int message_id) {
AddError(PendingError(policy, subkey, message_id));
}
-void PolicyErrorMap::AddError(ConfigurationPolicyType policy,
+void PolicyErrorMap::AddError(const std::string& policy,
int message_id,
const std::string& replacement) {
AddError(PendingError(policy, std::string(), message_id, replacement));
}
-void PolicyErrorMap::AddError(ConfigurationPolicyType policy,
+void PolicyErrorMap::AddError(const std::string& policy,
const std::string& subkey,
int message_id,
const std::string& replacement) {
AddError(PendingError(policy, subkey, message_id, replacement));
}
-string16 PolicyErrorMap::GetErrors(ConfigurationPolicyType policy) {
+string16 PolicyErrorMap::GetErrors(const std::string& policy) {
CheckReadyAndConvert();
std::pair<const_iterator, const_iterator> range = map_.equal_range(policy);
std::vector<string16> list;
« no previous file with comments | « chrome/browser/policy/policy_error_map.h ('k') | chrome/browser/policy/policy_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698