Index: chrome/browser/profiles/profile_impl_io_data.cc |
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
index ae9af7527cec077532776e4ab4602d7b27df6529..b796df3dcbf7d2c226c3bcce8c3f051605dd81e6 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -132,7 +132,11 @@ ProfileImplIOData::Handle::~Handle() { |
if (io_data_->http_server_properties_manager_) |
io_data_->http_server_properties_manager_->ShutdownOnPrefThread(); |
- io_data_->data_reduction_proxy_io_data()->ShutdownOnUIThread(); |
+ // io_data_->data_reduction_proxy_io_data() might be NULL if Init() was |
+ // never called. |
+ if (io_data_->data_reduction_proxy_io_data()) |
+ io_data_->data_reduction_proxy_io_data()->ShutdownOnUIThread(); |
+ |
io_data_->ShutdownOnUIThread(GetAllContextGetters().Pass()); |
} |