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

Unified Diff: chrome/browser/ui/webui/local_state/local_state_ui.h

Issue 1910323002: Allow whitelisted prefs to be displayed in ChromeOS in chrome://local-state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | chrome/browser/ui/webui/local_state/local_state_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/local_state/local_state_ui.h
diff --git a/chrome/browser/ui/webui/local_state/local_state_ui.h b/chrome/browser/ui/webui/local_state/local_state_ui.h
index e845dae0958c9da4541f153760800e440588fe00..0a4c345c4264c561942c118b3233418adf231ef3 100644
--- a/chrome/browser/ui/webui/local_state/local_state_ui.h
+++ b/chrome/browser/ui/webui/local_state/local_state_ui.h
@@ -5,9 +5,26 @@
#ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_
#define CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_
+#include <string>
+#include <vector>
+
#include "base/macros.h"
#include "content/public/browser/web_ui_controller.h"
+namespace base {
+class DictionaryValue;
+}
+
+// Namespace for exposing the method for unit tests.
+namespace internal {
+
+// Removes elements from |prefs| where the key does not match any of the
+// prefixes in |valid_prefixes|.
+void FilterPrefs(const std::vector<std::string>& valid_prefixes,
+ base::DictionaryValue* prefs);
+
+} // namespace internal
+
// Controller for chrome://local-state/ page.
class LocalStateUI : public content::WebUIController {
public:
« no previous file with comments | « no previous file | chrome/browser/ui/webui/local_state/local_state_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698