Commit eb0cfff6 authored by Nigel Tao's avatar Nigel Tao Committed by Commit Bot

Upgrade cloud_print from deprecated base::JSONReader API

Bug: 1070409
Change-Id: I577dfb61d70ac8048f08fa13502753ee62b24e86
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2228592Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Nigel Tao <nigeltao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775050}
parent 9b8a2c27
......@@ -250,8 +250,8 @@ void PrivetURLLoader::OnDownloadedToString(
return;
}
base::JSONReader json_reader(base::JSON_ALLOW_TRAILING_COMMAS);
base::Optional<base::Value> value = json_reader.ReadToValue(*response_body);
base::Optional<base::Value> value =
base::JSONReader::Read(*response_body, base::JSON_ALLOW_TRAILING_COMMAS);
if (!value || !value->is_dict()) {
delegate_->OnError(0, JSON_PARSE_ERROR);
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment