OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 profile_->GetRequestContext(), std::move(store), | 205 profile_->GetRequestContext(), std::move(store), |
206 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), | 206 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), |
207 db_task_runner); | 207 db_task_runner); |
208 | 208 |
209 io_data_->set_previews_io_data(base::MakeUnique<previews::PreviewsIOData>( | 209 io_data_->set_previews_io_data(base::MakeUnique<previews::PreviewsIOData>( |
210 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), | 210 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), |
211 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); | 211 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); |
212 PreviewsServiceFactory::GetForProfile(profile_)->set_previews_ui_service( | 212 PreviewsServiceFactory::GetForProfile(profile_)->set_previews_ui_service( |
213 base::MakeUnique<previews::PreviewsUIService>( | 213 base::MakeUnique<previews::PreviewsUIService>( |
214 io_data_->previews_io_data(), | 214 io_data_->previews_io_data(), |
215 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO))); | 215 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), nullptr)); |
216 } | 216 } |
217 | 217 |
218 content::ResourceContext* | 218 content::ResourceContext* |
219 ProfileImplIOData::Handle::GetResourceContext() const { | 219 ProfileImplIOData::Handle::GetResourceContext() const { |
220 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 220 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
221 LazyInitialize(); | 221 LazyInitialize(); |
222 return GetResourceContextNoInit(); | 222 return GetResourceContextNoInit(); |
223 } | 223 } |
224 | 224 |
225 content::ResourceContext* | 225 content::ResourceContext* |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 const base::Closure& completion) { | 805 const base::Closure& completion) { |
806 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 806 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
807 DCHECK(initialized()); | 807 DCHECK(initialized()); |
808 | 808 |
809 DCHECK(transport_security_state()); | 809 DCHECK(transport_security_state()); |
810 // Completes synchronously. | 810 // Completes synchronously. |
811 transport_security_state()->DeleteAllDynamicDataSince(time); | 811 transport_security_state()->DeleteAllDynamicDataSince(time); |
812 DCHECK(http_server_properties_manager_); | 812 DCHECK(http_server_properties_manager_); |
813 http_server_properties_manager_->Clear(completion); | 813 http_server_properties_manager_->Clear(completion); |
814 } | 814 } |
OLD | NEW |