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

Unified Diff: remoting/protocol/pairing_registry.cc

Issue 2051663003: base::ListValue::Append cleanup: pass unique_ptr instead of the released pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: remoting/protocol/pairing_registry.cc
diff --git a/remoting/protocol/pairing_registry.cc b/remoting/protocol/pairing_registry.cc
index 87fb66ec08d6366f4546b5d2148df393001a081d..1e763a4ee3967284743f1f1d93c820d2931909d0 100644
--- a/remoting/protocol/pairing_registry.cc
+++ b/remoting/protocol/pairing_registry.cc
@@ -286,7 +286,7 @@ void PairingRegistry::SanitizePairings(
pairing.client_name(),
pairing.client_id(),
"");
- sanitized_pairings->Append(sanitized_pairing.ToValue().release());
+ sanitized_pairings->Append(sanitized_pairing.ToValue());
}
callback.Run(std::move(sanitized_pairings));

Powered by Google App Engine
This is Rietveld 408576698