Index: chrome/browser/browsing_data/browsing_data_remover.cc |
diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc |
index 576f3d1eb0484cae19aef63f60054ec158f6bf2e..25dff5bd4d805833bab92e607aedd6c2f5d47276 100644 |
--- a/chrome/browser/browsing_data/browsing_data_remover.cc |
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc |
@@ -52,6 +52,7 @@ |
#include "content/public/browser/download_manager.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/plugin_data_remover.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/user_metrics.h" |
#include "net/base/net_errors.h" |
#include "net/base/server_bound_cert_service.h" |
@@ -373,9 +374,11 @@ void BrowsingDataRemover::RemoveImpl(int remove_mask, |
if (remove_mask & REMOVE_LOCAL_STORAGE) { |
waiting_for_clear_local_storage_ = true; |
- if (!dom_storage_context_) |
+ if (!dom_storage_context_) { |
dom_storage_context_ = |
- BrowserContext::GetDefaultDOMStorageContext(profile_); |
+ BrowserContext::GetDefaultStoragePartition(profile_)-> |
+ GetDOMStorageContext(); |
+ } |
ClearLocalStorageOnUIThread(); |
} |