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

Unified Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 1152613003: Implement sidebar support for extension action popups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move SidebarManager to ExtensionSystem and remove notifications Created 5 years, 7 months 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/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

Powered by Google App Engine
This is Rietveld 408576698