| 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;
|
| }
|
| }
|
|
|