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 721cdc503d890e643c62c66011afd0eba770ee24..e82ef90fe95e4ceb690678c58367cb17f3f49ecc 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()); |
} |