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

Unified Diff: chrome/browser/ui/webui/options/managed_user_settings_handler.h

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix problem with some WebUI tests. Created 7 years, 10 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/options/managed_user_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/managed_user_settings_handler.h b/chrome/browser/ui/webui/options/managed_user_settings_handler.h
index 234ab1f4e2301d376f240de90da32836f3adc9b4..a08859a34d5ab15e1016592c2fcda9e43be05573 100644
--- a/chrome/browser/ui/webui/options/managed_user_settings_handler.h
+++ b/chrome/browser/ui/webui/options/managed_user_settings_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_
+#include "base/prefs/public/pref_change_registrar.h"
#include "base/time.h"
#include "base/values.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
@@ -20,6 +21,7 @@ class ManagedUserSettingsHandler : public OptionsPageUIHandler {
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
+ virtual void InitializeHandler() OVERRIDE;
virtual void InitializePage() OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
@@ -27,9 +29,14 @@ class ManagedUserSettingsHandler : public OptionsPageUIHandler {
// Save user metrics. Called from WebUI.
void SaveMetrics(const base::ListValue* args);
+ // Called when the local passphrase changes.
+ void OnLocalPassphraseChanged();
+
// For tracking how long the user spends on this page.
base::TimeTicks start_time_;
+ PrefChangeRegistrar pref_change_registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler);
};

Powered by Google App Engine
This is Rietveld 408576698