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

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..fe262ed05826988562f7bc6c40120362381240d1 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,18 @@
#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 "base/values.h"
Alexei Svitkine (slow) 2016/04/25 21:30:13 Nit: You can forward declare base::DictionaryValue
hamelphi 2016/04/26 15:25:28 Done. However, can you explain why this is better
Alexei Svitkine (slow) 2016/04/26 15:33:34 Chromium diverges from Google Style here - as the
#include "content/public/browser/web_ui_controller.h"
+namespace internal {
Alexei Svitkine (slow) 2016/04/25 21:30:13 Nit: Add a short comment about the purpose of this
hamelphi 2016/04/26 15:25:28 Done.
+void FilterPrefs(const std::vector<std::string>& valid_prefixes,
Alexei Svitkine (slow) 2016/04/25 21:30:13 Nit: Add a short comment about what this function
hamelphi 2016/04/26 15:25:28 Done.
+ base::DictionaryValue* prefs);
+}
+
// Controller for chrome://local-state/ page.
class LocalStateUI : public content::WebUIController {
public:

Powered by Google App Engine
This is Rietveld 408576698