Index: base/json/json_writer.cc |
diff --git a/base/json/json_writer.cc b/base/json/json_writer.cc |
index 07b9d5091c80f6ba3292bbfa711429c9ec44dc23..19f28f21ada24ff0416a5ef4d4919796b0e76e05 100644 |
--- a/base/json/json_writer.cc |
+++ b/base/json/json_writer.cc |
@@ -128,7 +128,7 @@ bool JSONWriter::BuildJSONString(const Value& node, size_t depth) { |
bool result = node.GetAsList(&list); |
DCHECK(result); |
for (const auto& value : *list) { |
- if (omit_binary_values_ && value->GetType() == Value::Type::BINARY) |
+ if (omit_binary_values_ && value.GetType() == Value::Type::BINARY) |
continue; |
if (first_value_has_been_output) { |
@@ -137,7 +137,7 @@ bool JSONWriter::BuildJSONString(const Value& node, size_t depth) { |
json_string_->push_back(' '); |
} |
- if (!BuildJSONString(*value, depth)) |
+ if (!BuildJSONString(value, depth)) |
result = false; |
first_value_has_been_output = true; |