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

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

Issue 77773002: Ensure the ExtensionSystem is ready before initializing an ExtensionAppModelBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years, 1 month 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_controller_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_controller_delegate.cc b/chrome/browser/ui/app_list/app_list_controller_delegate.cc
index e6bff3e771bcaadb6170e8bead66a9888fc27067..4ff275dcb4ac164ca285d378128ff62e1319ac4f 100644
--- a/chrome/browser/ui/app_list/app_list_controller_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_controller_delegate.cc
@@ -161,6 +161,7 @@ void AppListControllerDelegate::GetApps(Profile* profile,
ExtensionSet* out_apps) {
ExtensionService* service =
extensions::ExtensionSystem::Get(profile)->extension_service();
+ DCHECK(service);
tapted 2013/11/20 11:03:25 maybe CHECK() - opinions?
if (!service)
return;
stevenjb 2013/11/20 19:41:15 We shouldn't have both {D}CHECK(service) and a !se
tapted 2013/11/21 03:29:56 Yep - bot runs suggest that the separate !service
out_apps->InsertAll(*service->extensions());

Powered by Google App Engine
This is Rietveld 408576698