Index: chrome/test/chromedriver/chrome/log.cc |
diff --git a/chrome/test/chromedriver/chrome/log.cc b/chrome/test/chromedriver/chrome/log.cc |
index c98ab48dfa5aa35e3453048fd74d0f5940e3d740..93024c02e88ccb1f2cb7e1244c0e26247381383a 100644 |
--- a/chrome/test/chromedriver/chrome/log.cc |
+++ b/chrome/test/chromedriver/chrome/log.cc |
@@ -72,7 +72,7 @@ std::unique_ptr<base::Value> SmartDeepCopy(const base::Value* value) { |
return std::move(list_copy); |
} else if (value->GetAsString(&data)) { |
TruncateString(&data); |
- return std::unique_ptr<base::Value>(new base::StringValue(data)); |
+ return std::unique_ptr<base::Value>(new base::Value(data)); |
} |
return std::unique_ptr<base::Value>(value->DeepCopy()); |
} |
@@ -110,6 +110,6 @@ std::string FormatValueForDisplay(const base::Value& value) { |
std::string FormatJsonForDisplay(const std::string& json) { |
std::unique_ptr<base::Value> value = base::JSONReader::Read(json); |
if (!value) |
- value.reset(new base::StringValue(json)); |
+ value.reset(new base::Value(json)); |
return FormatValueForDisplay(*value); |
} |