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

Unified Diff: components/dom_distiller/ios/distiller_page_ios.mm

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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
Index: components/dom_distiller/ios/distiller_page_ios.mm
diff --git a/components/dom_distiller/ios/distiller_page_ios.mm b/components/dom_distiller/ios/distiller_page_ios.mm
index 213e82fd671d09cfb1f851921b5844a75f129d8c..870e311ac06adc527e5c647882bd4da03740f7e0 100644
--- a/components/dom_distiller/ios/distiller_page_ios.mm
+++ b/components/dom_distiller/ios/distiller_page_ios.mm
@@ -49,16 +49,16 @@ std::unique_ptr<base::Value> ValueResultFromScriptResult(id wk_result,
} else if (result_type == CFNumberGetTypeID()) {
// Different implementation is here.
if ([wk_result intValue] != [wk_result doubleValue]) {
- result.reset(new base::FundamentalValue([wk_result doubleValue]));
+ result.reset(new base::Value([wk_result doubleValue]));
DCHECK(result->IsType(base::Value::TYPE_DOUBLE));
} else {
- result.reset(new base::FundamentalValue([wk_result intValue]));
+ result.reset(new base::Value([wk_result intValue]));
DCHECK(result->IsType(base::Value::TYPE_INTEGER));
}
// End of different implementation.
} else if (result_type == CFBooleanGetTypeID()) {
result.reset(
- new base::FundamentalValue(static_cast<bool>([wk_result boolValue])));
+ new base::Value(static_cast<bool>([wk_result boolValue])));
DCHECK(result->IsType(base::Value::TYPE_BOOLEAN));
} else if (result_type == CFNullGetTypeID()) {
result = base::Value::CreateNullValue();

Powered by Google App Engine
This is Rietveld 408576698