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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 2757923002: Move StoragePartitionHttpCacheDataRemover to content/ (Closed)
Patch Set: Rebase. 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 | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/web_view/web_view_guest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc
index 6a966d4b77cc30fe5651cd9fd1ca6f91b68bba70..ec6c59e62ec9cd9a33a022e49bc1d9803e546bd9 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_guest.cc
@@ -13,7 +13,6 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
-#include "components/browsing_data/content/storage_partition_http_cache_data_remover.h"
#include "components/guest_view/browser/guest_view_event.h"
#include "components/guest_view/browser/guest_view_manager.h"
#include "components/guest_view/common/guest_view_constants.h"
@@ -804,12 +803,10 @@ bool WebViewGuest::ClearData(base::Time remove_since,
base::Closure cache_removal_done_callback = base::Bind(
&WebViewGuest::ClearDataInternal, weak_ptr_factory_.GetWeakPtr(),
remove_since, removal_mask, callback);
- // StoragePartitionHttpCacheDataRemover removes itself when it is done.
// components/, move |ClearCache| to WebViewGuest: http//crbug.com/471287.
- browsing_data::StoragePartitionHttpCacheDataRemover::CreateForRange(
- partition, remove_since, base::Time::Now())
- ->Remove(cache_removal_done_callback);
-
+ partition->ClearHttpAndMediaCaches(remove_since, base::Time::Now(),
+ base::Callback<bool(const GURL&)>(),
+ cache_removal_done_callback);
return true;
}
« no previous file with comments | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698