Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1284)

Unified Diff: chrome/browser/notifications/notifier_state_tracker.cc

Issue 2336863003: Change more base::ListValue methods to use std::unique_ptr. (Closed)
Patch Set: Header Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..79f19fb69d4f25eca54a889feaaccdce970d6809 100644
--- a/chrome/browser/notifications/notifier_state_tracker.cc
+++ b/chrome/browser/notifications/notifier_state_tracker.cc
@@ -146,9 +146,9 @@ void NotifierStateTracker::SetNotifierEnabled(
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698