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

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

Issue 1818603002: Keep track of ChannelIDService in CookieStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix check Created 4 years, 9 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 <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( 508 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
509 base::SequencedWorkerPool::GetSequenceToken()), 509 base::SequencedWorkerPool::GetSequenceToken()),
510 lazy_params_->special_storage_policy.get()); 510 lazy_params_->special_storage_policy.get());
511 channel_id_service = new net::ChannelIDService( 511 channel_id_service = new net::ChannelIDService(
512 new net::DefaultChannelIDStore(channel_id_db.get()), 512 new net::DefaultChannelIDStore(channel_id_db.get()),
513 base::WorkerPool::GetTaskRunner(true)); 513 base::WorkerPool::GetTaskRunner(true));
514 } 514 }
515 515
516 set_channel_id_service(channel_id_service); 516 set_channel_id_service(channel_id_service);
517 main_context->set_channel_id_service(channel_id_service); 517 main_context->set_channel_id_service(channel_id_service);
518 main_cookie_store_->SetChannelIDServiceID(channel_id_service->GetUniqueID());
mmenke 2016/03/18 22:12:56 This seems weird. We're calling into one ChannelI
nharper 2016/03/18 22:31:09 I don't follow what you're saying here. This is se
mmenke 2016/03/18 22:39:19 Oh, "GetUniqueId()" was confusing me. Was thinkin
518 519
519 scoped_ptr<net::HttpCache::BackendFactory> main_backend( 520 scoped_ptr<net::HttpCache::BackendFactory> main_backend(
520 new net::HttpCache::DefaultBackend( 521 new net::HttpCache::DefaultBackend(
521 net::DISK_CACHE, 522 net::DISK_CACHE,
522 ChooseCacheBackendType(), 523 ChooseCacheBackendType(),
523 lazy_params_->cache_path, 524 lazy_params_->cache_path,
524 lazy_params_->cache_max_size, 525 lazy_params_->cache_max_size,
525 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE))); 526 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)));
526 http_network_session_ = CreateHttpNetworkSession(*profile_params); 527 http_network_session_ = CreateHttpNetworkSession(*profile_params);
527 main_http_factory_ = CreateMainHttpFactory(http_network_session_.get(), 528 main_http_factory_ = CreateMainHttpFactory(http_network_session_.get(),
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 const base::Closure& completion) { 766 const base::Closure& completion) {
766 DCHECK_CURRENTLY_ON(BrowserThread::IO); 767 DCHECK_CURRENTLY_ON(BrowserThread::IO);
767 DCHECK(initialized()); 768 DCHECK(initialized());
768 769
769 DCHECK(transport_security_state()); 770 DCHECK(transport_security_state());
770 // Completes synchronously. 771 // Completes synchronously.
771 transport_security_state()->DeleteAllDynamicDataSince(time); 772 transport_security_state()->DeleteAllDynamicDataSince(time);
772 DCHECK(http_server_properties_manager_); 773 DCHECK(http_server_properties_manager_);
773 http_server_properties_manager_->Clear(completion); 774 http_server_properties_manager_->Clear(completion);
774 } 775 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698