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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 1818603002: Keep track of ChannelIDService in CookieStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432 747 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432
748 // is fixed. 748 // is fixed.
749 tracked_objects::ScopedTracker tracking_profile12( 749 tracked_objects::ScopedTracker tracking_profile12(
750 FROM_HERE_WITH_EXPLICIT_FUNCTION( 750 FROM_HERE_WITH_EXPLICIT_FUNCTION(
751 "466432 IOThread::InitAsync::CreateCookieStore::End")); 751 "466432 IOThread::InitAsync::CreateCookieStore::End"));
752 // In-memory channel ID store. 752 // In-memory channel ID store.
753 globals_->system_channel_id_service.reset( 753 globals_->system_channel_id_service.reset(
754 new net::ChannelIDService( 754 new net::ChannelIDService(
755 new net::DefaultChannelIDStore(NULL), 755 new net::DefaultChannelIDStore(NULL),
756 base::WorkerPool::GetTaskRunner(true))); 756 base::WorkerPool::GetTaskRunner(true)));
757 globals_->system_cookie_store->SetChannelIDServiceID(
758 globals_->system_channel_id_service->GetUniqueID());
757 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432 759 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432
758 // is fixed. 760 // is fixed.
759 tracked_objects::ScopedTracker tracking_profile12_1( 761 tracked_objects::ScopedTracker tracking_profile12_1(
760 FROM_HERE_WITH_EXPLICIT_FUNCTION( 762 FROM_HERE_WITH_EXPLICIT_FUNCTION(
761 "466432 IOThread::InitAsync::CreateDnsProbeService")); 763 "466432 IOThread::InitAsync::CreateDnsProbeService"));
762 globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService()); 764 globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService());
763 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432 765 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466432
764 // is fixed. 766 // is fixed.
765 tracked_objects::ScopedTracker tracking_profile12_2( 767 tracked_objects::ScopedTracker tracking_profile12_2(
766 FROM_HERE_WITH_EXPLICIT_FUNCTION( 768 FROM_HERE_WITH_EXPLICIT_FUNCTION(
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 std::move(job_factory); 1785 std::move(job_factory);
1784 1786
1785 context->set_job_factory( 1787 context->set_job_factory(
1786 globals->proxy_script_fetcher_url_request_job_factory.get()); 1788 globals->proxy_script_fetcher_url_request_job_factory.get());
1787 1789
1788 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the 1790 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the
1789 // system URLRequestContext too. There's no reason this should be tied to a 1791 // system URLRequestContext too. There's no reason this should be tied to a
1790 // profile. 1792 // profile.
1791 return context; 1793 return context;
1792 } 1794 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/off_the_record_profile_io_data.cc » ('j') | net/url_request/url_request_http_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698