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

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

Issue 981893002: Lazily build the app list model. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_set_enabled
Patch Set: address comments 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/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index c57ba4637cd670da09dac0a39582a72bf1b10a2f..67b8c69878d9c79f215d950d6df6f96590d7ab02 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -303,8 +303,8 @@ void AppListViewDelegate::SetProfile(Profile* new_profile) {
template_url_service_observer_.Add(template_url_service);
}
- model_ =
- app_list::AppListSyncableServiceFactory::GetForProfile(profile_)->model();
+ model_ = app_list::AppListSyncableServiceFactory::GetForProfile(profile_)
+ ->GetModel();
#if defined(USE_ASH)
app_sync_ui_state_watcher_.reset(new AppSyncUIStateWatcher(profile_, model_));

Powered by Google App Engine
This is Rietveld 408576698