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

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

Issue 10316022: Wire up the policy for controlling pinned apps in the ash launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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
Index: chrome/browser/policy/policy_error_map.h
diff --git a/chrome/browser/policy/policy_error_map.h b/chrome/browser/policy/policy_error_map.h
index 8a513634ea84cf31ed56f447084eba528bcedd88..80d266a966984f9ac3b6f97d68c74da7074f0428 100644
--- a/chrome/browser/policy/policy_error_map.h
+++ b/chrome/browser/policy/policy_error_map.h
@@ -39,6 +39,12 @@ class PolicyErrorMap {
const std::string& subkey,
int message_id);
+ // Adds an entry with key |policy|, list index |index|, and the error message
+ // corresponding to |message_id| in grit/generated_resources.h to the map.
+ void AddError(const std::string& policy,
+ int index,
+ int message_id);
+
// Adds an entry with key |policy| and the error message corresponding to
// |message_id| in grit/generated_resources.h to the map and replaces the
// placeholder within the error message with |replacement_string|.
@@ -54,6 +60,14 @@ class PolicyErrorMap {
int message_id,
const std::string& replacement_string);
+ // Adds an entry with key |policy|, list index |index| and the error message
+ // corresponding to |message_id| in grit/generated_resources.h to the map.
+ // Replaces the placeholder in the error message with |replacement_string|.
+ void AddError(const std::string& policy,
+ int index,
+ int message_id,
+ const std::string& replacement_string);
+
// Returns all the error messages stored for |policy|, separated by a white
// space. Returns an empty string if there are no errors for |policy|.
string16 GetErrors(const std::string& policy);
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store_unittest.cc ('k') | chrome/browser/policy/policy_error_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698