Index: chrome/browser/background_application_list_model.cc |
=================================================================== |
--- chrome/browser/background_application_list_model.cc (revision 66663) |
+++ chrome/browser/background_application_list_model.cc (working copy) |
@@ -239,7 +239,9 @@ |
Update(); |
return; |
} |
- |
+ ExtensionsService* service = profile_->GetExtensionsService(); |
+ if (!service || !service->is_ready()) |
+ return; |
switch (type.value) { |
case NotificationType::EXTENSION_LOADED: |
OnExtensionLoaded(Details<Extension>(details).ptr()); |
@@ -284,6 +286,7 @@ |
// each observer. |
void BackgroundApplicationListModel::Update() { |
ExtensionsService* service = profile_->GetExtensionsService(); |
+ DCHECK(service->is_ready()); |
// Discover current background applications, compare with previous list, which |
// is consistently sorted, and notify observers if they differ. |