| Index: base/prefs/pref_service.cc
|
| diff --git a/base/prefs/pref_service.cc b/base/prefs/pref_service.cc
|
| index a9749b2ba836f6423c8d1696c038ae0b5e139cf0..c53b8966b347c02134967d6c8d932eb024d1decb 100644
|
| --- a/base/prefs/pref_service.cc
|
| +++ b/base/prefs/pref_service.cc
|
| @@ -471,7 +471,8 @@ base::Value* PrefService::GetMutableUserPref(const std::string& path,
|
| } else {
|
| NOTREACHED();
|
| }
|
| - user_pref_store_->SetValueSilently(path, value, GetWriteFlags(pref));
|
| + user_pref_store_->SetValueSilently(path, make_scoped_ptr(value),
|
| + GetWriteFlags(pref));
|
| }
|
| return value;
|
| }
|
| @@ -498,7 +499,7 @@ void PrefService::SetUserPrefValue(const std::string& path,
|
| return;
|
| }
|
|
|
| - user_pref_store_->SetValue(path, owned_value.release(), GetWriteFlags(pref));
|
| + user_pref_store_->SetValue(path, owned_value.Pass(), GetWriteFlags(pref));
|
| }
|
|
|
| void PrefService::UpdateCommandLinePrefStore(PrefStore* command_line_store) {
|
|
|