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

Unified Diff: chrome/browser/ui/app_list/extension_app_model_builder.cc

Issue 981893002: Lazily build the app list model. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_set_enabled
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/extension_app_model_builder.cc
diff --git a/chrome/browser/ui/app_list/extension_app_model_builder.cc b/chrome/browser/ui/app_list/extension_app_model_builder.cc
index 2bac8c768b06ffcbd1757b0fbf075344e84effd9..085ed56ce04fc6e9b2a0cf4cdd2855579231782c 100644
--- a/chrome/browser/ui/app_list/extension_app_model_builder.cc
+++ b/chrome/browser/ui/app_list/extension_app_model_builder.cc
@@ -50,9 +50,10 @@ ExtensionAppModelBuilder::~ExtensionAppModelBuilder() {
}
void ExtensionAppModelBuilder::InitializeWithService(
- app_list::AppListSyncableService* service) {
+ app_list::AppListSyncableService* service,
+ app_list::AppListModel* model) {
DCHECK(!service_ && !profile_);
- model_ = service->model();
+ model_ = model;
service_ = service;
profile_ = service->profile();
InitializePrefChangeRegistrars();

Powered by Google App Engine
This is Rietveld 408576698