summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_shelf_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_shelf_model.cc')
-rw-r--r--chrome/browser/extensions/extension_shelf_model.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_shelf_model.cc b/chrome/browser/extensions/extension_shelf_model.cc
index 70013e5..40b4158 100644
--- a/chrome/browser/extensions/extension_shelf_model.cc
+++ b/chrome/browser/extensions/extension_shelf_model.cc
@@ -124,8 +124,10 @@ void ExtensionShelfModel::Observe(NotificationType type,
RemoveExtension(Details<Extension>(details).ptr());
break;
case NotificationType::EXTENSIONS_READY:
- AddExtensions(browser_->profile()->GetExtensionsService()->extensions());
- SortToolstrips();
+ if (browser_->profile()->GetExtensionsService()) {
+ AddExtensions(browser_->profile()->GetExtensionsService()->extensions());
+ SortToolstrips();
+ }
ready_ = true;
break;
case NotificationType::EXTENSION_SHELF_MODEL_CHANGED: