| Index: chrome/browser/extensions/api/settings_private/settings_private_event_router.cc
|
| diff --git a/chrome/browser/extensions/api/settings_private/settings_private_event_router.cc b/chrome/browser/extensions/api/settings_private/settings_private_event_router.cc
|
| index 4218b63cda1a2ce52a1e7c3038ee9e295590ed71..f51f6dba327293dbfb8cca3f37364160bbebae26 100644
|
| --- a/chrome/browser/extensions/api/settings_private/settings_private_event_router.cc
|
| +++ b/chrome/browser/extensions/api/settings_private/settings_private_event_router.cc
|
| @@ -131,11 +131,12 @@ void SettingsPrivateEventRouter::OnPreferenceChanged(
|
| return;
|
| }
|
|
|
| - api::settings_private::PrefObject* pref_object =
|
| - prefs_util_->GetPref(pref_name).release();
|
| + scoped_ptr<api::settings_private::PrefObject> pref_object =
|
| + prefs_util_->GetPref(pref_name);
|
|
|
| - std::vector<linked_ptr<api::settings_private::PrefObject>> prefs;
|
| - prefs.push_back(linked_ptr<api::settings_private::PrefObject>(pref_object));
|
| + std::vector<api::settings_private::PrefObject> prefs;
|
| + if (pref_object)
|
| + prefs.push_back(std::move(*pref_object));
|
|
|
| scoped_ptr<base::ListValue> args(
|
| api::settings_private::OnPrefsChanged::Create(prefs));
|
|
|