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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reabase for fixing instant. Created 8 years, 4 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/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 1f088885ff6f6e188e9f563851934cb0fb8c2210..d69c6f4f4858e8f185fc53d43891f445a53e80bb 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -249,11 +249,12 @@ InstantLoader::InstantLoader(InstantLoaderDelegate* delegate,
const std::string& instant_url,
const TabContents* tab_contents)
: loader_delegate_(delegate),
- preview_contents_(new TabContents(content::WebContents::Create(
- tab_contents->profile(), NULL, MSG_ROUTING_NONE,
- tab_contents->web_contents(),
- tab_contents->web_contents()->GetController().
- GetSessionStorageNamespace()))),
+ preview_contents_(new TabContents(
+ content::WebContents::CreateWithSessionStorage(
+ tab_contents->profile(), NULL, MSG_ROUTING_NONE,
+ tab_contents->web_contents(),
+ tab_contents->web_contents()->GetController().
+ GetSessionStorageNamespaceMap()))),
preview_delegate_(new WebContentsDelegateImpl(
ALLOW_THIS_IN_INITIALIZER_LIST(this))),
supports_instant_(false),

Powered by Google App Engine
This is Rietveld 408576698