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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 238863005: Domain Reliability: Remove browsing data when requested. (Closed) Base URL: http://git.chromium.org/chromium/src.git@domrel_bakedin
Patch Set: ...and fix BrowsingDataRemoverTet Created 6 years, 7 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 | « chrome/browser/profiles/profile_impl_io_data.h ('k') | chrome/browser/ui/app_list/test/fake_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index fbc6261609ad2b2225f1c0b3a5c72c3ae0150710..d67ad529756c6831c19dc2977395e504f9f48663 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -310,6 +310,21 @@ void ProfileImplIOData::Handle::ClearNetworkingHistorySince(
completion));
}
+void ProfileImplIOData::Handle::ClearDomainReliabilityMonitor(
+ domain_reliability::DomainReliabilityClearMode mode,
+ const base::Closure& completion) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ LazyInitialize();
+
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(
+ &ProfileImplIOData::ClearDomainReliabilityMonitorOnIOThread,
+ base::Unretained(io_data_),
+ mode,
+ completion));
+}
+
void ProfileImplIOData::Handle::LazyInitialize() const {
if (initialized_)
return;
@@ -744,3 +759,15 @@ void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread(
DCHECK(http_server_properties_manager_);
http_server_properties_manager_->Clear(completion);
}
+
+void ProfileImplIOData::ClearDomainReliabilityMonitorOnIOThread(
+ domain_reliability::DomainReliabilityClearMode mode,
+ const base::Closure& completion) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK(initialized());
+
+ if (domain_reliability_monitor_)
+ domain_reliability_monitor_->ClearBrowsingData(mode);
+
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion);
+}
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.h ('k') | chrome/browser/ui/app_list/test/fake_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698