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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl.cc ('k') | content/common/child_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 3d3dfaedca59c5d16c8b2e0edb37ac36cf6452b3..032ebb3d6cf23f79a369a18318280b62b7eced8e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -273,7 +273,7 @@ WebContents* WebContents::CreateWithSessionStorage(
it != session_storage_namespace_map.end();
++it) {
new_contents->GetController().SetSessionStorageNamespace(it->first,
- it->second);
+ it->second.get());
}
new_contents->Init(browser_context, site_instance, routing_id,
@@ -1291,7 +1291,7 @@ void WebContentsImpl::CreateNewWindow(
site_instance->GetSiteURL());
StoragePartition* partition =
BrowserContext::GetStoragePartition(GetBrowserContext(),
- site_instance);
+ site_instance.get());
DOMStorageContextImpl* dom_storage_context =
static_cast<DOMStorageContextImpl*>(partition->GetDOMStorageContext());
SessionStorageNamespaceImpl* session_storage_namespace_impl =
@@ -1300,7 +1300,7 @@ void WebContentsImpl::CreateNewWindow(
new_contents->GetController().SetSessionStorageNamespace(
partition_id,
session_storage_namespace);
- new_contents->Init(GetBrowserContext(), site_instance, route_id, this);
+ new_contents->Init(GetBrowserContext(), site_instance.get(), route_id, this);
new_contents->set_opener_web_ui_type(GetWebUITypeForCurrentState());
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl.cc ('k') | content/common/child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698