| Index: chrome/browser/ui/app_list/search/common/webservice_cache.cc
|
| diff --git a/chrome/browser/ui/app_list/search/common/webservice_cache.cc b/chrome/browser/ui/app_list/search/common/webservice_cache.cc
|
| index b1f103c74454d90ac6dbd10bc59df22a5df2be45..40b116ac4613152145b96a6a2636ab3e119884f8 100644
|
| --- a/chrome/browser/ui/app_list/search/common/webservice_cache.cc
|
| +++ b/chrome/browser/ui/app_list/search/common/webservice_cache.cc
|
| @@ -128,15 +128,15 @@
|
| return true;
|
| }
|
|
|
| -std::unique_ptr<base::DictionaryValue> WebserviceCache::DictFromPayload(
|
| +base::DictionaryValue* WebserviceCache::DictFromPayload(
|
| const Payload& payload) {
|
| - auto dict = base::MakeUnique<base::DictionaryValue>();
|
| + base::DictionaryValue* dict = new base::DictionaryValue();
|
| dict->SetString(kKeyResultTime, base::Int64ToString(
|
| payload.time.ToInternalValue()));
|
| // The payload will still keep ownership of it's result dict, hence put a
|
| // a copy of the result dictionary here. This dictionary will be owned by
|
| // data_store_->cached_dict().
|
| - dict->Set(kKeyResult, base::MakeUnique<base::Value>(*payload.result));
|
| + dict->Set(kKeyResult, payload.result->DeepCopy());
|
|
|
| return dict;
|
| }
|
|
|