| Index: net/log/test_net_log.cc
|
| diff --git a/net/log/test_net_log.cc b/net/log/test_net_log.cc
|
| index 0e82ae1eaf0f0ea1807fdf98d619a7d91ba0c015..c8d04cb71f1c9ee6a76964a13e8bd94644db728e 100644
|
| --- a/net/log/test_net_log.cc
|
| +++ b/net/log/test_net_log.cc
|
| @@ -50,16 +50,14 @@ class TestNetLog::Observer : public NetLog::ThreadSafeObserver {
|
| void OnAddEntry(const NetLog::Entry& entry) override {
|
| // Using Dictionaries instead of Values makes checking values a little
|
| // simpler.
|
| - base::DictionaryValue* param_dict = nullptr;
|
| - base::Value* param_value = entry.ParametersToValue();
|
| - if (param_value && !param_value->GetAsDictionary(¶m_dict))
|
| - delete param_value;
|
| + scoped_ptr<base::DictionaryValue> param_dict =
|
| + base::DictionaryValue::From(entry.ParametersToValue());
|
|
|
| // Only need to acquire the lock when accessing class variables.
|
| base::AutoLock lock(lock_);
|
| - entry_list_.push_back(TestNetLogEntry(
|
| - entry.type(), base::TimeTicks::Now(), entry.source(), entry.phase(),
|
| - scoped_ptr<base::DictionaryValue>(param_dict)));
|
| + entry_list_.push_back(TestNetLogEntry(entry.type(), base::TimeTicks::Now(),
|
| + entry.source(), entry.phase(),
|
| + std::move(param_dict)));
|
| }
|
|
|
| // Needs to be "mutable" to use it in GetEntries().
|
|
|