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

Unified Diff: chrome/browser/ui/startup/session_crashed_prompt.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
Index: chrome/browser/ui/startup/session_crashed_prompt.cc
diff --git a/chrome/browser/ui/startup/session_crashed_prompt.cc b/chrome/browser/ui/startup/session_crashed_prompt.cc
index 855e4d9f29540b2b8614a84df40dd369d9c62297..fa75e048279ec3281e63a4e04cee826dff15614e 100644
--- a/chrome/browser/ui/startup/session_crashed_prompt.cc
+++ b/chrome/browser/ui/startup/session_crashed_prompt.cc
@@ -16,6 +16,7 @@
#include "chrome/common/url_constants.h"
#include "content/public/browser/dom_storage_context.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -72,8 +73,8 @@ SessionCrashedInfoBarDelegate::~SessionCrashedInfoBarDelegate() {
// If the info bar wasn't accepted, it was either dismissed or expired. In
// that case, session restore won't happen.
if (!accepted_ && !removed_notification_received_) {
- content::BrowserContext::GetDefaultDOMStorageContext(
- browser_->profile())->StartScavengingUnusedSessionStorage();
+ content::BrowserContext::GetDefaultStoragePartition(browser_->profile())->
+ GetDOMStorageContext()->StartScavengingUnusedSessionStorage();
}
}
@@ -120,8 +121,8 @@ void SessionCrashedInfoBarDelegate::Observe(
this)
return;
if (!accepted_) {
- content::BrowserContext::GetDefaultDOMStorageContext(
- browser_->profile())->StartScavengingUnusedSessionStorage();
+ content::BrowserContext::GetDefaultStoragePartition(browser_->profile())->
+ GetDOMStorageContext()->StartScavengingUnusedSessionStorage();
removed_notification_received_ = true;
}
}
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698