diff options
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module.cc')
-rw-r--r-- | chrome/browser/extensions/extension_bookmarks_module.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc index 9f978ef..2d7cbb3 100644 --- a/chrome/browser/extensions/extension_bookmarks_module.cc +++ b/chrome/browser/extensions/extension_bookmarks_module.cc @@ -154,8 +154,10 @@ void ExtensionBookmarkEventRouter::Observe(BookmarkModel* model) { void ExtensionBookmarkEventRouter::DispatchEvent(Profile *profile, const char* event_name, const std::string json_args) { - ExtensionMessageService::GetInstance(profile->GetRequestContext())-> - DispatchEventToRenderers(event_name, json_args); + if (profile->GetExtensionMessageService()) { + profile->GetExtensionMessageService()-> + DispatchEventToRenderers(event_name, json_args); + } } void ExtensionBookmarkEventRouter::Loaded(BookmarkModel* model) { |