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

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

Issue 2851493003: Remove unused CookiePreferences from report sender and never send cookies (Closed)
Patch Set: Fix iOS build Created 3 years, 7 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_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool(); 1016 base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
1017 transport_security_persister_.reset( 1017 transport_security_persister_.reset(
1018 new net::TransportSecurityPersister( 1018 new net::TransportSecurityPersister(
1019 transport_security_state_.get(), 1019 transport_security_state_.get(),
1020 profile_params_->path, 1020 profile_params_->path,
1021 pool->GetSequencedTaskRunnerWithShutdownBehavior( 1021 pool->GetSequencedTaskRunnerWithShutdownBehavior(
1022 pool->GetSequenceToken(), 1022 pool->GetSequenceToken(),
1023 base::SequencedWorkerPool::BLOCK_SHUTDOWN), 1023 base::SequencedWorkerPool::BLOCK_SHUTDOWN),
1024 IsOffTheRecord())); 1024 IsOffTheRecord()));
1025 1025
1026 certificate_report_sender_.reset(new net::ReportSender( 1026 certificate_report_sender_.reset(
1027 main_request_context_.get(), net::ReportSender::DO_NOT_SEND_COOKIES)); 1027 new net::ReportSender(main_request_context_.get()));
1028 transport_security_state_->SetReportSender(certificate_report_sender_.get()); 1028 transport_security_state_->SetReportSender(certificate_report_sender_.get());
1029 1029
1030 expect_ct_reporter_.reset( 1030 expect_ct_reporter_.reset(
1031 new ChromeExpectCTReporter(main_request_context_.get())); 1031 new ChromeExpectCTReporter(main_request_context_.get()));
1032 transport_security_state_->SetExpectCTReporter(expect_ct_reporter_.get()); 1032 transport_security_state_->SetExpectCTReporter(expect_ct_reporter_.get());
1033 1033
1034 transport_security_state_->SetRequireCTDelegate( 1034 transport_security_state_->SetRequireCTDelegate(
1035 ct_policy_manager_->GetDelegate()); 1035 ct_policy_manager_->GetDelegate());
1036 1036
1037 // Take ownership over these parameters. 1037 // Take ownership over these parameters.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 void ProfileIOData::SetCookieSettingsForTesting( 1292 void ProfileIOData::SetCookieSettingsForTesting(
1293 content_settings::CookieSettings* cookie_settings) { 1293 content_settings::CookieSettings* cookie_settings) {
1294 DCHECK(!cookie_settings_.get()); 1294 DCHECK(!cookie_settings_.get());
1295 cookie_settings_ = cookie_settings; 1295 cookie_settings_ = cookie_settings;
1296 } 1296 }
1297 1297
1298 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1298 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1299 const GURL& url) const { 1299 const GURL& url) const {
1300 return url_blacklist_manager_->GetURLBlacklistState(url); 1300 return url_blacklist_manager_->GetURLBlacklistState(url);
1301 } 1301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698