summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 03:40:57 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 03:40:57 +0000
commit2f0a6476e26ebd0adc4e33308597895edafd70b1 (patch)
treeac7f70b4ffaa263cf1e3c4809eed68686d08efc3 /base/values.cc
parentc01d41aee3d457c41ab323f7c592d09e68038ca5 (diff)
downloadchromium_src-2f0a6476e26ebd0adc4e33308597895edafd70b1.zip
chromium_src-2f0a6476e26ebd0adc4e33308597895edafd70b1.tar.gz
chromium_src-2f0a6476e26ebd0adc4e33308597895edafd70b1.tar.bz2
Adds some debugging code in hopes of figuring out a crash. As far as I
can tell the crash is occurring because prefs has a Value that has been deleted so that when we go to update the Value we crash. I only enabled the debugging code for non-incognito prefs. If it turns out the crashes are in incognito-prefs, I'll update that next. BUG=91396 TEST=none R=brettw@chromium.org,bauerb@chromium.org,ben@chromium.org Review URL: http://codereview.chromium.org/7698004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/values.cc b/base/values.cc
index d3f0f92..aba0715 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -65,6 +65,7 @@ namespace base {
///////////////////// Value ////////////////////
Value::~Value() {
+ CHECK(!check_on_delete_);
}
// static
@@ -146,7 +147,7 @@ bool Value::Equals(const Value* a, const Value* b) {
return a->Equals(b);
}
-Value::Value(Type type) : type_(type) {
+Value::Value(Type type) : type_(type), check_on_delete_(false) {
}
///////////////////// FundamentalValue ////////////////////