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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_impl.cc

Issue 2757573004: Move the WebCacheManager call from BrowsingDataRemoverImpl to the delegate (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover_impl.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_impl.cc b/chrome/browser/browsing_data/browsing_data_remover_impl.cc
index c0ea686cf717844398dabde980e5c123dbb8f053..0570ff28b77494e75bdb3a1806ed7726203c93d9 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_impl.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_impl.cc
@@ -20,7 +20,6 @@
#include "chrome/common/pref_names.h"
#include "components/browsing_data/content/storage_partition_http_cache_data_remover.h"
#include "components/prefs/pref_service.h"
-#include "components/web_cache/browser/web_cache_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/browsing_data_filter_builder.h"
@@ -515,11 +514,10 @@ void BrowsingDataRemoverImpl::RemoveImpl(
//////////////////////////////////////////////////////////////////////////////
// CACHE
if (remove_mask & DATA_TYPE_CACHE) {
- // Tell the renderers to clear their cache.
- web_cache::WebCacheManager::GetInstance()->ClearCache();
-
content::RecordAction(UserMetricsAction("ClearBrowsingData_Cache"));
+ // TODO(msramek): Clear the cache of all renderers.
+
clear_cache_.Start();
// StoragePartitionHttpCacheDataRemover deletes itself when it is done.
if (filter_builder.IsEmptyBlacklist()) {
« no previous file with comments | « no previous file | chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698