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

Unified Diff: chrome/browser/guestview/webview/webview_guest.cc

Issue 37843003: BrowsingDataRemover, (re)use StoragePartition deletion code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combine functions. Created 7 years, 2 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
Index: chrome/browser/guestview/webview/webview_guest.cc
diff --git a/chrome/browser/guestview/webview/webview_guest.cc b/chrome/browser/guestview/webview/webview_guest.cc
index d5c66fb66b6028d2bb77833c9d2f90d358626d4a..b4f84866be75ac45e4abd7706376efd0f083cebd 100644
--- a/chrome/browser/guestview/webview/webview_guest.cc
+++ b/chrome/browser/guestview/webview/webview_guest.cc
@@ -438,9 +438,11 @@ bool WebViewGuest::ClearData(const base::Time remove_since,
if (!partition)
return false;
- partition->ClearDataForRange(
+ partition->ClearData(
removal_mask,
content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
+ NULL,
+ content::StoragePartition::OriginMatcherFunction(),
remove_since,
base::Time::Now(),
callback);

Powered by Google App Engine
This is Rietveld 408576698