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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DISALLOW_COPY_AND_ASSIGN, and change RPH::CreateMessageFilters() to not suddenly isolate all… 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/startup/session_crashed_prompt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 2906eec974ec5dbce4e54c8b362fc1957e744d8b..610c26574371c944553211d6feb2215b7ecd43ea 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -43,6 +43,7 @@
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/session_storage_namespace.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
#include "net/base/network_change_notifier.h"
@@ -738,8 +739,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
if (windows->empty()) {
// Restore was unsuccessful. The DOM storage system can also delete its
// data, since no session restore will happen at a later point in time.
- content::BrowserContext::GetDefaultDOMStorageContext(profile_)->
- StartScavengingUnusedSessionStorage();
+ content::BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetDOMStorageContext()->StartScavengingUnusedSessionStorage();
return FinishedTabCreation(false, false);
}
@@ -832,8 +833,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
// sessionStorages needed for the session restore have now been recreated
// by RestoreTab. Now it's safe for the DOM storage system to start
// deleting leftover data.
- content::BrowserContext::GetDefaultDOMStorageContext(profile_)->
- StartScavengingUnusedSessionStorage();
+ content::BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetDOMStorageContext()->StartScavengingUnusedSessionStorage();
return last_browser;
}
@@ -891,8 +892,9 @@ class SessionRestoreImpl : public content::NotificationObserver {
scoped_refptr<content::SessionStorageNamespace> session_storage_namespace;
if (!tab.session_storage_persistent_id.empty()) {
session_storage_namespace =
- content::BrowserContext::GetDefaultDOMStorageContext(profile_)->
- RecreateSessionStorage(tab.session_storage_persistent_id);
+ content::BrowserContext::GetDefaultStoragePartition(profile_)->
+ GetDOMStorageContext()->RecreateSessionStorage(
+ tab.session_storage_persistent_id);
}
WebContents* web_contents =
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/startup/session_crashed_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698