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

Side by Side Diff: chrome/browser/ui/app_list/extension_app_model_builder.h

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/extension_app_item.cc ('k') | chrome/browser/ui/app_list/extension_app_model_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698