| Index: ios/crnet/crnet_environment.mm
|
| diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
|
| index 33f4160888e5f9877fddc237fde1d8fc2bf17544..6e22ca6bb0dab71e9e3bd89133e2760c6a93e47e 100644
|
| --- a/ios/crnet/crnet_environment.mm
|
| +++ b/ios/crnet/crnet_environment.mm
|
| @@ -473,8 +473,8 @@ void CrNetEnvironment::InitializeOnNetworkThread() {
|
| "data", base::WrapUnique(new net::DataProtocolHandler));
|
| #if !defined(DISABLE_FILE_SUPPORT)
|
| job_factory->SetProtocolHandler(
|
| - "file", base::WrapUnique(
|
| - new net::FileProtocolHandler(file_thread_->task_runner())));
|
| + "file",
|
| + base::MakeUnique<net::FileProtocolHandler>(file_thread_->task_runner()));
|
| #endif // !defined(DISABLE_FILE_SUPPORT)
|
| main_context_->set_job_factory(job_factory);
|
|
|
| @@ -493,7 +493,7 @@ std::string CrNetEnvironment::user_agent() {
|
|
|
| void CrNetEnvironment::ClearCache(ClearCacheCallback callback) {
|
| PostToNetworkThread(
|
| - FROM_HERE,
|
| - base::Bind(&net::ClearHttpCache, main_context_getter_,
|
| - network_io_thread_->task_runner(), base::BindBlock(callback)));
|
| + FROM_HERE, base::Bind(&net::ClearHttpCache, main_context_getter_,
|
| + network_io_thread_->task_runner(), base::Time(),
|
| + base::Time::Max(), base::BindBlock(callback)));
|
| }
|
|
|