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

Side by Side Diff: ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc

Issue 2851493003: Remove unused CookiePreferences from report sender and never send cookies (Closed)
Patch Set: Fix rebase 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 std::move(profile_params_->proxy_config_service), 356 std::move(profile_params_->proxy_config_service),
357 true /* quick_check_enabled */); 357 true /* quick_check_enabled */);
358 transport_security_state_.reset(new net::TransportSecurityState()); 358 transport_security_state_.reset(new net::TransportSecurityState());
359 base::SequencedWorkerPool* pool = web::WebThread::GetBlockingPool(); 359 base::SequencedWorkerPool* pool = web::WebThread::GetBlockingPool();
360 transport_security_persister_.reset(new net::TransportSecurityPersister( 360 transport_security_persister_.reset(new net::TransportSecurityPersister(
361 transport_security_state_.get(), profile_params_->path, 361 transport_security_state_.get(), profile_params_->path,
362 pool->GetSequencedTaskRunnerWithShutdownBehavior( 362 pool->GetSequencedTaskRunnerWithShutdownBehavior(
363 pool->GetSequenceToken(), base::SequencedWorkerPool::BLOCK_SHUTDOWN), 363 pool->GetSequenceToken(), base::SequencedWorkerPool::BLOCK_SHUTDOWN),
364 IsOffTheRecord())); 364 IsOffTheRecord()));
365 365
366 certificate_report_sender_.reset(new net::ReportSender( 366 certificate_report_sender_ =
367 main_request_context_.get(), net::ReportSender::DO_NOT_SEND_COOKIES)); 367 base::MakeUnique<net::ReportSender>(main_request_context_.get());
368 transport_security_state_->SetReportSender(certificate_report_sender_.get()); 368 transport_security_state_->SetReportSender(certificate_report_sender_.get());
369 369
370 // Take ownership over these parameters. 370 // Take ownership over these parameters.
371 cookie_settings_ = profile_params_->cookie_settings; 371 cookie_settings_ = profile_params_->cookie_settings;
372 host_content_settings_map_ = profile_params_->host_content_settings_map; 372 host_content_settings_map_ = profile_params_->host_content_settings_map;
373 373
374 main_request_context_->set_cert_verifier( 374 main_request_context_->set_cert_verifier(
375 io_thread_globals->cert_verifier.get()); 375 io_thread_globals->cert_verifier.get());
376 main_request_context_->set_ct_policy_enforcer( 376 main_request_context_->set_ct_policy_enforcer(
377 io_thread_globals->ct_policy_enforcer.get()); 377 io_thread_globals->ct_policy_enforcer.get());
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 return std::unique_ptr<net::HttpCache>( 473 return std::unique_ptr<net::HttpCache>(
474 new net::HttpCache(session, std::move(main_backend), true)); 474 new net::HttpCache(session, std::move(main_backend), true));
475 } 475 }
476 476
477 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( 477 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory(
478 net::HttpNetworkSession* shared_session, 478 net::HttpNetworkSession* shared_session,
479 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { 479 std::unique_ptr<net::HttpCache::BackendFactory> backend) const {
480 return std::unique_ptr<net::HttpCache>( 480 return std::unique_ptr<net::HttpCache>(
481 new net::HttpCache(shared_session, std::move(backend), true)); 481 new net::HttpCache(shared_session, std::move(backend), true));
482 } 482 }
OLDNEW
« no previous file with comments | « components/certificate_reporting/error_reporter_unittest.cc ('k') | net/url_request/report_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698