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

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

Issue 8413037: Display policy parsing errors in about:policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed extra byte, rebased Created 9 years, 2 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 b031b227aff93347e4ca72c5912b4231a1b0277a..3c06193cdbc22c50aba44cf7dc8a105a17c80f8a 100644
--- a/chrome/browser/policy/policy_error_map.h
+++ b/chrome/browser/policy/policy_error_map.h
@@ -8,10 +8,10 @@
#include <map>
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "base/string16.h"
-#include "base/values.h"
#include "policy/configuration_policy_type.h"
namespace policy {
@@ -41,10 +41,9 @@ class PolicyErrorMap {
int message_id,
const std::string& replacement_string);
- // Returns a list of all the error messages stored for |policy|. Returns NULL
- // if there are no error messages for |policy. The caller acquires ownership
- // of the returned ListValue pointer.
- ListValue* GetErrors(ConfigurationPolicyType policy);
+ // 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(ConfigurationPolicyType policy);
bool empty();
size_t size();
« no previous file with comments | « chrome/browser/policy/configuration_policy_reader_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