| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Initializes the |profile_pref_change_registrar_| and the | 78 // Initializes the |profile_pref_change_registrar_| and the |
| 79 // |extension_pref_change_registrar_| to listen for changes to profile and | 79 // |extension_pref_change_registrar_| to listen for changes to profile and |
| 80 // extension prefs, and call OnProfilePreferenceChanged() or | 80 // extension prefs, and call OnProfilePreferenceChanged() or |
| 81 // OnExtensionPreferenceChanged(). | 81 // OnExtensionPreferenceChanged(). |
| 82 void InitializePrefChangeRegistrars(); | 82 void InitializePrefChangeRegistrars(); |
| 83 | 83 |
| 84 // Handles profile prefs changes. | 84 // Handles profile prefs changes. |
| 85 void OnProfilePreferenceChanged(); | 85 void OnProfilePreferenceChanged(); |
| 86 | 86 |
| 87 // Handles extension prefs changes. | |
| 88 void OnExtensionPreferenceChanged(); | |
| 89 | |
| 90 // Registrar used to monitor the profile prefs. | 87 // Registrar used to monitor the profile prefs. |
| 91 PrefChangeRegistrar profile_pref_change_registrar_; | 88 PrefChangeRegistrar profile_pref_change_registrar_; |
| 92 | 89 |
| 93 // Registrar used to monitor the extension prefs. | |
| 94 PrefChangeRegistrar extension_pref_change_registrar_; | |
| 95 | |
| 96 // We listen to this to show app installing progress. | 90 // We listen to this to show app installing progress. |
| 97 extensions::InstallTracker* tracker_ = nullptr; | 91 extensions::InstallTracker* tracker_ = nullptr; |
| 98 | 92 |
| 99 // Dispatches extension lifecycle events. | 93 // Dispatches extension lifecycle events. |
| 100 std::unique_ptr<LauncherExtensionAppUpdater> app_updater_; | 94 std::unique_ptr<LauncherExtensionAppUpdater> app_updater_; |
| 101 | 95 |
| 102 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); | 96 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); |
| 103 }; | 97 }; |
| 104 | 98 |
| 105 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 99 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
| OLD | NEW |