Index: chrome/browser/extensions/extension_system_impl.cc |
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc |
index 667a693bc2a8af8906074a1be7de252f404e9299..8891a55ab977ac789b065205b5cba69d42c27859 100644 |
--- a/chrome/browser/extensions/extension_system_impl.cc |
+++ b/chrome/browser/extensions/extension_system_impl.cc |
@@ -26,6 +26,7 @@ |
#include "chrome/browser/extensions/navigation_observer.h" |
#include "chrome/browser/extensions/shared_module_service.h" |
#include "chrome/browser/extensions/shared_user_script_master.h" |
+#include "chrome/browser/extensions/sidebar_manager.h" |
#include "chrome/browser/extensions/state_store_notification_observer.h" |
#include "chrome/browser/extensions/unpacked_installer.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -557,4 +558,15 @@ void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); |
} |
+SidebarManager* ExtensionSystemImpl::sidebar_manager() { |
+ if (!sidebar_manager_) |
+ CreateSidebarManager(); |
+ return sidebar_manager_.get(); |
+} |
+ |
+void ExtensionSystemImpl::CreateSidebarManager() { |
+ DCHECK(sidebar_manager_.get() == NULL); |
+ sidebar_manager_ = new SidebarManager(); |
+} |
+ |
} // namespace extensions |