Index: chrome/browser/prefs/pref_change_registrar.cc |
diff --git a/chrome/browser/prefs/pref_change_registrar.cc b/chrome/browser/prefs/pref_change_registrar.cc |
index 5655a8e6ed99eb7c23bce01799927aae1cee3712..64c60962e8b445969a530854bfd7f0f4ce344ca4 100644 |
--- a/chrome/browser/prefs/pref_change_registrar.cc |
+++ b/chrome/browser/prefs/pref_change_registrar.cc |
@@ -10,6 +10,10 @@ |
PrefChangeRegistrar::PrefChangeRegistrar() : service_(NULL) {} |
PrefChangeRegistrar::~PrefChangeRegistrar() { |
+ // If you see an invalid memory access in this destructor, this |
+ // PrefChangeRegistrar might be subscribed to an OffTheRecordProfileImpl that |
+ // has been destroyed. This should not happen any more but be warned. |
+ // Feel free to contact battre@chromium.org in case this happens. |
RemoveAll(); |
} |