Index: chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.h |
diff --git a/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.h b/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.h |
index 93a990403ee8693548d5ea325bec6ecb9241e8e8..fe732a2486baae502af8c8d35edf34698c2fb5cc 100644 |
--- a/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.h |
+++ b/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.h |
@@ -8,6 +8,7 @@ |
#include "base/macros.h" |
#include "chrome/browser/signin/easy_unlock_service_observer.h" |
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
+#include "components/prefs/pref_change_registrar.h" |
namespace content { |
class WebUIDataSource; |
@@ -38,17 +39,22 @@ class EasyUnlockSettingsHandler : public ::settings::SettingsPageUIHandler, |
explicit EasyUnlockSettingsHandler(Profile* profile); |
private: |
+ FRIEND_TEST_ALL_PREFIXES(EasyUnlockSettingsHandlerTest, EnabledStatus); |
FRIEND_TEST_ALL_PREFIXES(EasyUnlockSettingsHandlerTest, TurnOffStatus); |
+ void SendEnabledStatus(); |
void SendTurnOffOperationStatus(); |
// JS callbacks. |
+ void HandleGetEnabledStatus(const base::ListValue* args); |
void HandleGetTurnOffFlowStatus(const base::ListValue* args); |
void HandleRequestTurnOff(const base::ListValue* args); |
void HandlePageDismissed(const base::ListValue* args); |
Profile* const profile_; |
+ PrefChangeRegistrar profile_pref_registrar_; |
+ |
DISALLOW_COPY_AND_ASSIGN(EasyUnlockSettingsHandler); |
}; |