| Index: chrome/browser/notifications/notifier_state_tracker.cc
|
| diff --git a/chrome/browser/notifications/notifier_state_tracker.cc b/chrome/browser/notifications/notifier_state_tracker.cc
|
| index aeab48dcd2d7fbe9d7f8005daee75849e733a6e5..02ab9eabce7ca1fc3efccdbce482c7f39dcac1ee 100644
|
| --- a/chrome/browser/notifications/notifier_state_tracker.cc
|
| +++ b/chrome/browser/notifications/notifier_state_tracker.cc
|
| @@ -144,11 +144,9 @@ void NotifierStateTracker::SetNotifierEnabled(
|
| ListPrefUpdate update(profile_->GetPrefs(), pref_name);
|
| base::ListValue* const list = update.Get();
|
| if (add_new_item) {
|
| - // AppendIfNotPresent will delete |adding_value| when the same value
|
| - // already exists.
|
| - list->AppendIfNotPresent(id.release());
|
| + list->AppendIfNotPresent(std::move(id));
|
| } else {
|
| - list->Remove(*id, NULL);
|
| + list->Remove(*id, nullptr);
|
| }
|
| }
|
|
|
|
|