Commit 9c69a18d authored by Sergei Datsenko's avatar Sergei Datsenko Committed by Commit Bot

Use SetKey instead of SetPath to make DCHECK happy

BUG=chromium:879051

Change-Id: I3e9000b6bdf7e48683010ba5e039bd6b79219910
Reviewed-on: https://chromium-review.googlesource.com/1196285Reviewed-by: default avatarStuart Langley <slangley@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587949}
parent 334e04d7
......@@ -225,10 +225,10 @@ void AppendKeyValue(base::ListValue* list,
std::string value,
std::string clazz = std::string()) {
auto dict = std::make_unique<base::DictionaryValue>();
dict->SetPath({kKey}, base::Value(std::move(key)));
dict->SetPath({kValue}, base::Value(std::move(value)));
dict->SetKey(kKey, base::Value(std::move(key)));
dict->SetKey(kValue, base::Value(std::move(value)));
if (!clazz.empty())
dict->SetPath({kClass}, base::Value(std::move(clazz)));
dict->SetKey(kClass, base::Value(std::move(clazz)));
list->GetList().push_back(std::move(*dict));
}
......
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