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

Unified Diff: sync/internal_api/events/protocol_event.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: sync/internal_api/events/protocol_event.cc
diff --git a/sync/internal_api/events/protocol_event.cc b/sync/internal_api/events/protocol_event.cc
index 49e43b52c03aba398dced46e1f46c7791614cf10..f7fdb00c31a5c4b4dd0331b71b6cb007383711dc 100644
--- a/sync/internal_api/events/protocol_event.cc
+++ b/sync/internal_api/events/protocol_event.cc
@@ -10,9 +10,9 @@ ProtocolEvent::ProtocolEvent() {}
ProtocolEvent::~ProtocolEvent() {}
-scoped_ptr<base::DictionaryValue> ProtocolEvent::ToValue(
+std::unique_ptr<base::DictionaryValue> ProtocolEvent::ToValue(
const ProtocolEvent& event) {
- scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
dict->SetDouble("time", event.GetTimestamp().ToJsTime());
dict->SetString("type", event.GetType());

Powered by Google App Engine
This is Rietveld 408576698