summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-24 05:40:40 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-24 05:40:40 +0000
commite98fad92b695f3a6468b48a95eb8256f64e0a8f5 (patch)
tree1b0b76824d15f7116814a009273c224ae9db3a25 /base/values.cc
parentb7c865da33615223545eebbda624c2218bc241cf (diff)
downloadchromium_src-e98fad92b695f3a6468b48a95eb8256f64e0a8f5.zip
chromium_src-e98fad92b695f3a6468b48a95eb8256f64e0a8f5.tar.gz
chromium_src-e98fad92b695f3a6468b48a95eb8256f64e0a8f5.tar.bz2
Remove check_on_delete for ChromeOS to avoid change to sizeof(Value)
BUG=chromium-os:19577 TEST=chrome compiles on all platforms Review URL: http://codereview.chromium.org/7714024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/values.cc b/base/values.cc
index 191995c..799e100 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -65,7 +65,9 @@ namespace base {
///////////////////// Value ////////////////////
Value::~Value() {
+#if !defined(OS_CHROMEOS)
CHECK(!check_on_delete_);
+#endif
}
// static
@@ -147,7 +149,12 @@ bool Value::Equals(const Value* a, const Value* b) {
return a->Equals(b);
}
-Value::Value(Type type) : type_(type), check_on_delete_(false) {
+Value::Value(Type type)
+ : type_(type)
+#if !defined(OS_CHROMEOS)
+ , check_on_delete_(false)
+#endif
+{
}
///////////////////// FundamentalValue ////////////////////