OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
7 | 7 |
8 #include "base/prefs/pref_change_registrar.h" | 8 #include "base/prefs/pref_change_registrar.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 private: | 28 private: |
29 // Save user metrics. Called from WebUI. | 29 // Save user metrics. Called from WebUI. |
30 void SaveMetrics(const base::ListValue* args); | 30 void SaveMetrics(const base::ListValue* args); |
31 | 31 |
32 // Records metric that the settings page was opened. Called from WebUI. | 32 // Records metric that the settings page was opened. Called from WebUI. |
33 void HandlePageOpened(const base::ListValue* args); | 33 void HandlePageOpened(const base::ListValue* args); |
34 | 34 |
35 // Called when the local passphrase changes. | 35 // Called when the local passphrase changes. |
36 void OnLocalPassphraseChanged(); | 36 void OnLocalPassphraseChanged(); |
37 | 37 |
| 38 // Checks whether the settings dialog has been shown before. |
| 39 bool HasSeenSetupDialog(); |
| 40 |
38 // For tracking how long the user spends on this page. | 41 // For tracking how long the user spends on this page. |
39 base::TimeTicks start_time_; | 42 base::TimeTicks start_time_; |
40 | 43 |
41 PrefChangeRegistrar pref_change_registrar_; | 44 PrefChangeRegistrar pref_change_registrar_; |
42 | 45 |
43 DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler); | 46 DISALLOW_COPY_AND_ASSIGN(ManagedUserSettingsHandler); |
44 }; | 47 }; |
45 | 48 |
46 } // namespace options | 49 } // namespace options |
47 | 50 |
48 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ | 51 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_SETTINGS_HANDLER_H_ |
OLD | NEW |