summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browsing_data_remover.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index 0a646fa..4477ce7 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -240,10 +240,9 @@ void BrowsingDataRemover::ClearCacheOnIOThread(
// Get a pointer to the cache.
net::HttpTransactionFactory* factory =
main_context_getter->GetURLRequestContext()->http_transaction_factory();
- disk_cache::Backend* cache = factory->GetCache()->disk_cache();
+ disk_cache::Backend* cache = factory->GetCache()->GetBackend();
- // |cache| can be null since it is lazily initialized, in this case we do
- // nothing.
+ // |cache| can be null if it cannot be initialized.
if (cache) {
if (delete_begin.is_null())
cache->DoomAllEntries();
@@ -254,10 +253,9 @@ void BrowsingDataRemover::ClearCacheOnIOThread(
// Get a pointer to the media cache.
factory = media_context_getter->GetURLRequestContext()->
http_transaction_factory();
- cache = factory->GetCache()->disk_cache();
+ cache = factory->GetCache()->GetBackend();
- // |cache| can be null since it is lazily initialized, in this case we do
- // nothing.
+ // |cache| can be null if it cannot be initialized.
if (cache) {
if (delete_begin.is_null())
cache->DoomAllEntries();