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

Unified Diff: sync/internal_api/events/commit_response_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/commit_response_event.cc
diff --git a/sync/internal_api/events/commit_response_event.cc b/sync/internal_api/events/commit_response_event.cc
index c263e944adb3fbd24c3187a35c9d9e138230682e..05d244ea7b16d9460bbc8fc3b7435f03da6e09a5 100644
--- a/sync/internal_api/events/commit_response_event.cc
+++ b/sync/internal_api/events/commit_response_event.cc
@@ -31,17 +31,15 @@ std::string CommitResponseEvent::GetDetails() const {
return base::StringPrintf("Result: %s", GetSyncerErrorString(result_));
}
-scoped_ptr<base::DictionaryValue> CommitResponseEvent::GetProtoMessage() const {
- return scoped_ptr<base::DictionaryValue>(
+std::unique_ptr<base::DictionaryValue> CommitResponseEvent::GetProtoMessage()
+ const {
+ return std::unique_ptr<base::DictionaryValue>(
ClientToServerResponseToValue(response_, false));
}
-scoped_ptr<ProtocolEvent> CommitResponseEvent::Clone() const {
- return scoped_ptr<ProtocolEvent>(
- new CommitResponseEvent(
- timestamp_,
- result_,
- response_));
+std::unique_ptr<ProtocolEvent> CommitResponseEvent::Clone() const {
+ return std::unique_ptr<ProtocolEvent>(
+ new CommitResponseEvent(timestamp_, result_, response_));
}
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698