Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index 6a994e7f9a8782a31b58dde3d202ce74ed04b961..c1aed25838ada09920aa9303532ce3ba7449a2f2 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -192,6 +192,10 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() { |
// Clears any data the network stack contains that may be related to the |
// OTR session. |
g_browser_process->io_thread()->ChangedToOnTheRecord(); |
+ |
+ // This must be called before ProfileIOData::ShutdownOnUIThread but after |
+ // other profile-related destroy notifications are dispatched. |
+ ShutdownStoragePartitions(); |
} |
void OffTheRecordProfileImpl::InitIoData() { |