Index: chrome/browser/extensions/extension_view_host_factory.cc |
diff --git a/chrome/browser/extensions/extension_view_host_factory.cc b/chrome/browser/extensions/extension_view_host_factory.cc |
index d98b2b704424aa50a7a6b2fb980cba39117893ac..4f88f2fd2a0fe41eae6f068e421775ded44943df 100644 |
--- a/chrome/browser/extensions/extension_view_host_factory.cc |
+++ b/chrome/browser/extensions/extension_view_host_factory.cc |
@@ -113,4 +113,13 @@ ExtensionViewHost* ExtensionViewHostFactory::CreateDialogHost( |
return CreateViewHost(url, profile, NULL, VIEW_TYPE_EXTENSION_DIALOG); |
} |
+// static |
+ExtensionViewHost* ExtensionViewHostFactory::CreateSidebarHost( |
+ const GURL& url, |
+ Browser* browser) { |
+ DCHECK(browser); |
+ return CreateViewHost(url, browser->profile(), browser, |
+ VIEW_TYPE_EXTENSION_SIDEBAR); |
+} |
+ |
} // namespace extensions |