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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.h

Issue 8726007: Disable UI in chrome://settings/internet and details popup for policy-managed networks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make clang happy. Created 9 years, 1 month 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/options/chromeos/internet_options_handler.h
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
index 467035fa6e1eeeb45a5e209fec184ce2146ad75f..5fd6182f766e323b4fa43ada9d5d88952cf90e1f 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/chromeos/cros/network_library.h"
+#include "chrome/browser/chromeos/cros/network_ui_data.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
#include "content/public/browser/notification_registrar.h"
#include "ui/gfx/native_widget_types.h"
@@ -129,6 +130,14 @@ class InternetOptionsHandler
// case of cellular networks, network technology and roaming status.
void MonitorNetworks();
+ // Stores a dictionary under |key| in |settings| that is suitable to be sent
+ // to the webui that contains the actual value of a setting and whether it's
+ // controlled by policy. Takes ownership of |value|.
+ void SetValueDictionary(DictionaryValue* settings,
+ const char* key,
+ base::Value* value,
+ const chromeos::NetworkPropertyUIData& ui_data);
+
// Convenience pointer to netwrok library (will not change).
chromeos::NetworkLibrary* cros_;

Powered by Google App Engine
This is Rietveld 408576698