Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index f520e2a5f3a22815d93b4fa75c8fbd79d646cdba..dcacc00756006d0bcb607869098482aab1f23652 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -717,6 +717,10 @@ ProfileImpl::~ProfileImpl() { |
// This causes the Preferences file to be written to disk. |
if (prefs_loaded) |
SetExitType(EXIT_NORMAL); |
+ |
+ // This must be called before ProfileIOData::ShutdownOnUIThread but after |
+ // other profile-related destroy notifications are dispatched. |
+ ShutdownStoragePartitions(); |
} |
std::string ProfileImpl::GetProfileUserName() const { |