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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 2335023002: Adding a previews IO-thread blacklist (Closed)
Patch Set: tbansal comments Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 const base::Closure& completion) { 804 const base::Closure& completion) {
805 DCHECK_CURRENTLY_ON(BrowserThread::IO); 805 DCHECK_CURRENTLY_ON(BrowserThread::IO);
806 DCHECK(initialized()); 806 DCHECK(initialized());
807 807
808 DCHECK(transport_security_state()); 808 DCHECK(transport_security_state());
809 // Completes synchronously. 809 // Completes synchronously.
810 transport_security_state()->DeleteAllDynamicDataSince(time); 810 transport_security_state()->DeleteAllDynamicDataSince(time);
811 DCHECK(http_server_properties_manager_); 811 DCHECK(http_server_properties_manager_);
812 http_server_properties_manager_->Clear(completion); 812 http_server_properties_manager_->Clear(completion);
813 } 813 }
OLDNEW
« no previous file with comments | « no previous file | components/previews/core/BUILD.gn » ('j') | components/previews/core/previews_black_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698