| 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 faba3535fa634f92fc430102620364147e664686..89fce3ffca73ea83bf8e3e8f8cc37d537fe215cf 100644
|
| --- a/chrome/browser/profiles/profile_impl_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc
|
| @@ -258,7 +258,8 @@ ProfileImplIOData::Handle::GetIsolatedMediaRequestContextGetter(
|
| }
|
|
|
| void ProfileImplIOData::Handle::ClearNetworkingHistorySince(
|
| - base::Time time) {
|
| + base::Time time,
|
| + const base::Closure& completion) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| LazyInitialize();
|
|
|
| @@ -267,7 +268,8 @@ void ProfileImplIOData::Handle::ClearNetworkingHistorySince(
|
| base::Bind(
|
| &ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread,
|
| base::Unretained(io_data_),
|
| - time));
|
| + time,
|
| + completion));
|
| }
|
|
|
| void ProfileImplIOData::Handle::LazyInitialize() const {
|
| @@ -663,12 +665,13 @@ void ProfileImplIOData::SetUpJobFactory(
|
| }
|
|
|
| void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread(
|
| - base::Time time) {
|
| + base::Time time,
|
| + const base::Closure& completion) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| LazyInitialize();
|
|
|
| DCHECK(transport_security_state());
|
| - transport_security_state()->DeleteSince(time);
|
| + transport_security_state()->DeleteSince(time); // Completes synchronously.
|
| DCHECK(http_server_properties_manager());
|
| - http_server_properties_manager()->Clear();
|
| + http_server_properties_manager()->Clear(completion);
|
| }
|
|
|