Chromium Code Reviews| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc |
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc |
| index 71af0f3f2958343c547aceb776b882c6dc66e386..ba55f24c6a3fdfde5d8227a0dccb724ca75eb0d0 100644 |
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc |
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc |
| @@ -17,7 +17,8 @@ void TransferPrefList(const char* pref_path, |
| PrefService* dest) { |
| DCHECK(src->FindPreference(pref_path)->GetType() == base::Value::TYPE_LIST); |
| ListPrefUpdate update_dest(dest, pref_path); |
| - scoped_ptr<base::ListValue> src_list(src->GetList(pref_path)->DeepCopy()); |
| + std::unique_ptr<base::ListValue> src_list( |
| + src->GetList(pref_path)->DeepCopy()); |
|
megjablon
2016/04/12 21:55:36
#include <memory> ?
dcheng
2016/04/12 22:38:34
Done.
|
| update_dest->Swap(src_list.get()); |
| ListPrefUpdate update_src(src, pref_path); |
| src->ClearPref(pref_path); |