Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2582)

Unified Diff: base/values.cc

Issue 7714024: Remove check_on_delete for ChromeOS to avoid change to sizeof(Value) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/values.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.cc
diff --git a/base/values.cc b/base/values.cc
index 191995c658cde85003acb73933b820517ae8b839..799e100ea87b2f4015d9e5eb51dea14c2f04f327 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 ////////////////////
« no previous file with comments | « base/values.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698