Commit 2d76b52e authored by juliatuttle's avatar juliatuttle Committed by Commit bot

Reporting: Don't crash in ~ProfileIOData without URLRequestContextStorage

BUG=717183

Review-Url: https://codereview.chromium.org/2855693002
Cr-Commit-Position: refs/heads/master@{#468650}
parent 8c67c0c9
...@@ -671,8 +671,10 @@ ProfileIOData::~ProfileIOData() { ...@@ -671,8 +671,10 @@ ProfileIOData::~ProfileIOData() {
transport_security_state_->SetRequireCTDelegate(nullptr); transport_security_state_->SetRequireCTDelegate(nullptr);
// And the same for the ReportingService. // And the same for the ReportingService.
main_request_context_storage()->set_reporting_service( if (main_request_context_storage()) {
std::unique_ptr<net::ReportingService>()); main_request_context_storage()->set_reporting_service(
std::unique_ptr<net::ReportingService>());
}
// TODO(ajwong): These AssertNoURLRequests() calls are unnecessary since they // TODO(ajwong): These AssertNoURLRequests() calls are unnecessary since they
// are already done in the URLRequestContext destructor. // are already done in the URLRequestContext destructor.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment