Commit 33d80a8b authored by danakj's avatar danakj Committed by Commit Bot

Remove dead Shell::CreateNewWindowWithSessionStorageNamespace()

R=avi@chromium.org

Bug: 866140
Change-Id: I5f582807e4c8243d740f2dc4f83fb8a481ec242a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240044Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#777239}
parent 9a3da7d9
...@@ -227,31 +227,6 @@ Shell* Shell::CreateNewWindow(BrowserContext* browser_context, ...@@ -227,31 +227,6 @@ Shell* Shell::CreateNewWindow(BrowserContext* browser_context,
return shell; return shell;
} }
Shell* Shell::CreateNewWindowWithSessionStorageNamespace(
BrowserContext* browser_context,
const GURL& url,
const scoped_refptr<SiteInstance>& site_instance,
const gfx::Size& initial_size,
scoped_refptr<SessionStorageNamespace> session_storage_namespace) {
WebContents::CreateParams create_params(browser_context, site_instance);
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kForcePresentationReceiverForTesting)) {
create_params.starting_sandbox_flags =
content::kPresentationReceiverSandboxFlags;
}
std::map<std::string, scoped_refptr<SessionStorageNamespace>>
session_storages;
session_storages[""] = session_storage_namespace;
std::unique_ptr<WebContents> web_contents =
WebContents::CreateWithSessionStorage(create_params, session_storages);
Shell* shell =
CreateShell(std::move(web_contents), AdjustWindowSize(initial_size),
true /* should_set_delegate */);
if (!url.is_empty())
shell->LoadURL(url);
return shell;
}
void Shell::RenderViewReady() { void Shell::RenderViewReady() {
g_platform->RenderViewReady(this); g_platform->RenderViewReady(this);
} }
......
...@@ -72,13 +72,6 @@ class Shell : public WebContentsDelegate, ...@@ -72,13 +72,6 @@ class Shell : public WebContentsDelegate,
const scoped_refptr<SiteInstance>& site_instance, const scoped_refptr<SiteInstance>& site_instance,
const gfx::Size& initial_size); const gfx::Size& initial_size);
static Shell* CreateNewWindowWithSessionStorageNamespace(
BrowserContext* browser_context,
const GURL& url,
const scoped_refptr<SiteInstance>& site_instance,
const gfx::Size& initial_size,
scoped_refptr<SessionStorageNamespace> session_storage_namespace);
// Returns the Shell object corresponding to the given WebContents. // Returns the Shell object corresponding to the given WebContents.
static Shell* FromWebContents(WebContents* web_contents); static Shell* FromWebContents(WebContents* web_contents);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment