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

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

Issue 2335023002: Adding a previews IO-thread blacklist (Closed)
Patch Set: build.gn dependency on gurl 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
« no previous file with comments | « no previous file | components/previews/BUILD.gn » ('j') | components/previews/previews_black_list.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | components/previews/BUILD.gn » ('j') | components/previews/previews_black_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698