Skip to content

Commit

Permalink
3000931: Code health: remove base::ListValue from DevToolsEmbedderMes…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Jul 8, 2021
1 parent e710b8e commit 44c00b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/browser/ui/inspectable_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,9 @@ void InspectableWebContents::HandleMessageFromDevToolsFrontend(
params = &empty_params;
}
int id = message.FindIntKey(kFrontendHostId).value_or(0);
base::ListValue* params_list = nullptr;
params->GetAsList(&params_list);
std::vector<base::Value> params_list;
if (params)
params_list = std::move(*params).TakeList();
embedder_message_dispatcher_->Dispatch(
base::BindRepeating(&InspectableWebContents::SendMessageAck,
weak_factory_.GetWeakPtr(), id),
Expand Down

0 comments on commit 44c00b9

Please sign in to comment.