diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/net/log/net_log_entry.cc | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/log/net_log_entry.cc')
-rw-r--r-- | chromium/net/log/net_log_entry.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chromium/net/log/net_log_entry.cc b/chromium/net/log/net_log_entry.cc index d889aed4140..40fe04da449 100644 --- a/chromium/net/log/net_log_entry.cc +++ b/chromium/net/log/net_log_entry.cc @@ -25,27 +25,27 @@ NetLogEntry::NetLogEntry(NetLogEntry&& entry) = default; NetLogEntry& NetLogEntry::operator=(NetLogEntry&& entry) = default; base::Value NetLogEntry::ToValue() const { - base::DictionaryValue entry_dict; + base::Value entry_dict(base::Value::Type::DICTIONARY); - entry_dict.SetString("time", NetLog::TickCountToString(time)); + entry_dict.SetStringKey("time", NetLog::TickCountToString(time)); // Set the entry source. - base::DictionaryValue source_dict; - source_dict.SetInteger("id", source.id); - source_dict.SetInteger("type", static_cast<int>(source.type)); - source_dict.SetString("start_time", - NetLog::TickCountToString(source.start_time)); + base::Value source_dict(base::Value::Type::DICTIONARY); + source_dict.SetIntKey("id", source.id); + source_dict.SetIntKey("type", static_cast<int>(source.type)); + source_dict.SetStringKey("start_time", + NetLog::TickCountToString(source.start_time)); entry_dict.SetKey("source", std::move(source_dict)); // Set the event info. - entry_dict.SetInteger("type", static_cast<int>(type)); - entry_dict.SetInteger("phase", static_cast<int>(phase)); + entry_dict.SetIntKey("type", static_cast<int>(type)); + entry_dict.SetIntKey("phase", static_cast<int>(phase)); // Set the event-specific parameters. if (!params.is_none()) entry_dict.SetKey("params", params.Clone()); - return std::move(entry_dict); + return entry_dict; } NetLogEntry NetLogEntry::Clone() const { |