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

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
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..5ae6fdb5c3a3b3b5e5232a7544056d8aadb56a97 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 base
Alexei Svitkine (slow) 2016/04/26 15:33:35 Nit: No need for this end comment for a forward de
hamelphi1 2016/04/26 17:42:40 Done.
+
+// Namespace for exposing the method for unittests.
Alexei Svitkine (slow) 2016/04/26 15:33:35 Nit: unittests -> unit tests
hamelphi1 2016/04/26 17:42:40 Done.
+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);
+}
+
// Controller for chrome://local-state/ page.
class LocalStateUI : public content::WebUIController {
public:

Powered by Google App Engine
This is Rietveld 408576698