| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SETTINGS_PROFILE_INFO_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_PROFILE_INFO_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_PROFILE_INFO_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_PROFILE_INFO_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" |
| 11 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
| 12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 13 #include "chrome/browser/profiles/profile_attributes_storage.h" | 14 #include "chrome/browser/profiles/profile_attributes_storage.h" |
| 14 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 15 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 15 #include "components/prefs/pref_change_registrar.h" | 16 #include "components/prefs/pref_change_registrar.h" |
| 16 | 17 |
| 17 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
| 18 #include "components/user_manager/user_manager.h" | 19 #include "components/user_manager/user_manager.h" |
| 19 #else | 20 #else |
| 20 #include "chrome/browser/profiles/profile_statistics_common.h" | 21 #include "chrome/browser/profiles/profile_statistics_common.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 ScopedObserver<user_manager::UserManager, ProfileInfoHandler> | 89 ScopedObserver<user_manager::UserManager, ProfileInfoHandler> |
| 89 user_manager_observer_; | 90 user_manager_observer_; |
| 90 #endif | 91 #endif |
| 91 | 92 |
| 92 ScopedObserver<ProfileAttributesStorage, ProfileInfoHandler> | 93 ScopedObserver<ProfileAttributesStorage, ProfileInfoHandler> |
| 93 profile_observer_; | 94 profile_observer_; |
| 94 | 95 |
| 95 // Used to listen for changes in the list of managed supervised users. | 96 // Used to listen for changes in the list of managed supervised users. |
| 96 PrefChangeRegistrar profile_pref_registrar_; | 97 PrefChangeRegistrar profile_pref_registrar_; |
| 97 | 98 |
| 99 base::WeakPtrFactory<ProfileInfoHandler> weak_ptr_factory_; |
| 100 |
| 98 DISALLOW_COPY_AND_ASSIGN(ProfileInfoHandler); | 101 DISALLOW_COPY_AND_ASSIGN(ProfileInfoHandler); |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace settings | 104 } // namespace settings |
| 102 | 105 |
| 103 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PROFILE_INFO_HANDLER_H_ | 106 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PROFILE_INFO_HANDLER_H_ |
| OLD | NEW |