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

Unified Diff: chrome/browser/ui/browser_tabstrip.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content shell Created 8 years, 5 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
Index: chrome/browser/ui/browser_tabstrip.cc
diff --git a/chrome/browser/ui/browser_tabstrip.cc b/chrome/browser/ui/browser_tabstrip.cc
index f1b3986f290ccb3ece2d34abc83f704997844a69..31114e46a6accc3e26ec8164e72e8ca3741c113a 100644
--- a/chrome/browser/ui/browser_tabstrip.cc
+++ b/chrome/browser/ui/browser_tabstrip.cc
@@ -160,14 +160,26 @@ TabContents* TabContentsFactory(
Profile* profile,
content::SiteInstance* site_instance,
int routing_id,
+ const content::WebContents* base_web_contents) {
+ return new TabContents(content::WebContents::Create(profile,
+ site_instance,
+ routing_id,
+ base_web_contents));
+}
+
+TabContents* TabContentsFactoryWithSessionStorage(
+ Profile* profile,
+ content::SiteInstance* site_instance,
+ int routing_id,
const content::WebContents* base_web_contents,
- content::SessionStorageNamespace* session_storage_namespace) {
- return new TabContents(content::WebContents::Create(
- profile,
- site_instance,
- routing_id,
- base_web_contents,
- session_storage_namespace));
+ const content::SessionStorageNamespaceMap& session_storage_namespace_map) {
+ return new TabContents(
+ content::WebContents::CreateWithSessionStorage(
+ profile,
+ site_instance,
+ routing_id,
+ base_web_contents,
+ session_storage_namespace_map));
}
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698