Index: chrome/browser/profiles/profile_io_data.cc |
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
index 2c31e7109c0f5de51f95ffe06721b42fbd0a4d3e..0de7c80f58a3409b640f046d17f81ac787bbb516 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -671,8 +671,10 @@ ProfileIOData::~ProfileIOData() { |
transport_security_state_->SetRequireCTDelegate(nullptr); |
// And the same for the ReportingService. |
- main_request_context_storage()->set_reporting_service( |
- std::unique_ptr<net::ReportingService>()); |
+ if (main_request_context_storage()) { |
+ main_request_context_storage()->set_reporting_service( |
+ std::unique_ptr<net::ReportingService>()); |
+ } |
// TODO(ajwong): These AssertNoURLRequests() calls are unnecessary since they |
// are already done in the URLRequestContext destructor. |