diff options
Diffstat (limited to 'extensions/browser/guest_view/extension_options/extension_options_guest.cc')
-rw-r--r-- | extensions/browser/guest_view/extension_options/extension_options_guest.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/browser/guest_view/extension_options/extension_options_guest.cc b/extensions/browser/guest_view/extension_options/extension_options_guest.cc index 6a34aa0..5806540 100644 --- a/extensions/browser/guest_view/extension_options/extension_options_guest.cc +++ b/extensions/browser/guest_view/extension_options/extension_options_guest.cc @@ -19,6 +19,7 @@ #include "extensions/browser/extension_registry.h" #include "extensions/browser/guest_view/extension_options/extension_options_constants.h" #include "extensions/browser/guest_view/extension_options/extension_options_guest_delegate.h" +#include "extensions/browser/view_type_utils.h" #include "extensions/common/api/extension_options_internal.h" #include "extensions/common/constants.h" #include "extensions/common/extension.h" @@ -108,7 +109,9 @@ void ExtensionOptionsGuest::CreateWebContents( content::SiteInstance::CreateForURL(browser_context(), extension_url); WebContents::CreateParams params(browser_context(), options_site_instance); params.guest_delegate = this; - callback.Run(WebContents::Create(params)); + WebContents* wc = WebContents::Create(params); + SetViewType(wc, VIEW_TYPE_EXTENSION_GUEST); + callback.Run(wc); } void ExtensionOptionsGuest::DidInitialize( |