| Index: extensions/browser/extension_host.cc
|
| diff --git a/extensions/browser/extension_host.cc b/extensions/browser/extension_host.cc
|
| index 124a8fd2ddf3c4ca1502ec2369beb1676c774073..407f66ec9f4c18c68cb73299a92ce30816d657fd 100644
|
| --- a/extensions/browser/extension_host.cc
|
| +++ b/extensions/browser/extension_host.cc
|
| @@ -67,9 +67,10 @@ ExtensionHost::ExtensionHost(const Extension* extension,
|
| // Not used for panels, see PanelHost.
|
| DCHECK(host_type == VIEW_TYPE_EXTENSION_BACKGROUND_PAGE ||
|
| host_type == VIEW_TYPE_EXTENSION_DIALOG ||
|
| - host_type == VIEW_TYPE_EXTENSION_POPUP);
|
| + host_type == VIEW_TYPE_EXTENSION_POPUP ||
|
| + host_type == VIEW_TYPE_EXTENSION_SIDEBAR);
|
| host_contents_.reset(WebContents::Create(
|
| - WebContents::CreateParams(browser_context_, site_instance))),
|
| + WebContents::CreateParams(browser_context_, site_instance)));
|
| content::WebContentsObserver::Observe(host_contents_.get());
|
| host_contents_->SetDelegate(this);
|
| SetViewType(host_contents_.get(), host_type);
|
| @@ -222,6 +223,11 @@ void ExtensionHost::LoadInitialURL() {
|
| std::string());
|
| }
|
|
|
| +void ExtensionHost::LoadURL(const GURL& url) {
|
| + initial_url_ = url;
|
| + LoadInitialURL();
|
| +}
|
| +
|
| bool ExtensionHost::IsBackgroundPage() const {
|
| DCHECK_EQ(extension_host_type_, VIEW_TYPE_EXTENSION_BACKGROUND_PAGE);
|
| return true;
|
|
|