Copy base::JSONReader::Read() to ReadDeprecated().

https://chromium-review.googlesource.com/c/chromium/src/+/1435715
This commit is contained in:
deepak1556 2019-02-21 14:02:36 +05:30 committed by Samuel Attard
parent 6f14df039e
commit 59cb0ac32e
3 changed files with 5 additions and 3 deletions

View file

@ -45,7 +45,8 @@ void Debugger::DispatchProtocolMessage(DevToolsAgentHost* agent_host,
v8::Locker locker(isolate());
v8::HandleScope handle_scope(isolate());
std::unique_ptr<base::Value> parsed_message = base::JSONReader::Read(message);
std::unique_ptr<base::Value> parsed_message =
base::JSONReader::ReadDeprecated(message);
if (!parsed_message || !parsed_message->is_dict())
return;
base::DictionaryValue* dict =

View file

@ -508,7 +508,7 @@ void CommonWebContentsDelegate::DevToolsIndexPath(
return;
std::vector<std::string> excluded_folders;
std::unique_ptr<base::Value> parsed_excluded_folders =
base::JSONReader::Read(excluded_folders_message);
base::JSONReader::ReadDeprecated(excluded_folders_message);
if (parsed_excluded_folders && parsed_excluded_folders->is_list()) {
const std::vector<base::Value>& folder_paths =
parsed_excluded_folders->GetList();

View file

@ -687,7 +687,8 @@ void InspectableWebContentsImpl::HandleMessageFromDevToolsFrontend(
base::ListValue* params = &empty_params;
base::DictionaryValue* dict = nullptr;
std::unique_ptr<base::Value> parsed_message(base::JSONReader::Read(message));
std::unique_ptr<base::Value> parsed_message(
base::JSONReader::ReadDeprecated(message));
if (!parsed_message || !parsed_message->GetAsDictionary(&dict) ||
!dict->GetString(kFrontendHostMethod, &method) ||
(dict->HasKey(kFrontendHostParams) &&