Index: cc/base/math_util.cc |
diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc |
index a619b50698b4c536ec3cd9542b60b67e5349b4c3..07ad77bd7703d8fc2ed7768858044a7a9b348688 100644 |
--- a/cc/base/math_util.cc |
+++ b/cc/base/math_util.cc |
@@ -650,12 +650,12 @@ scoped_ptr<base::Value> MathUtil::AsValue(const gfx::BoxF& box) { |
} |
scoped_ptr<base::Value> MathUtil::AsValueSafely(double value) { |
- return scoped_ptr<base::Value>(base::Value::CreateDoubleValue( |
+ return scoped_ptr<base::Value>(new base::FundamentalValue( |
std::min(value, std::numeric_limits<double>::max()))); |
} |
scoped_ptr<base::Value> MathUtil::AsValueSafely(float value) { |
- return scoped_ptr<base::Value>(base::Value::CreateDoubleValue( |
+ return scoped_ptr<base::Value>(new base::FundamentalValue( |
std::min(value, std::numeric_limits<float>::max()))); |
} |