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

Unified Diff: sync/internal_api/events/clear_server_data_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/clear_server_data_response_event.cc
diff --git a/sync/internal_api/events/clear_server_data_response_event.cc b/sync/internal_api/events/clear_server_data_response_event.cc
index 34da27b8882407aa314a0f884021e1afe3c5d2b5..861b5256ebb2d524cdf33133910b6ae427516236 100644
--- a/sync/internal_api/events/clear_server_data_response_event.cc
+++ b/sync/internal_api/events/clear_server_data_response_event.cc
@@ -29,14 +29,14 @@ std::string ClearServerDataResponseEvent::GetDetails() const {
return base::StringPrintf("Result: %s", GetSyncerErrorString(result_));
}
-scoped_ptr<base::DictionaryValue>
+std::unique_ptr<base::DictionaryValue>
ClearServerDataResponseEvent::GetProtoMessage() const {
- return scoped_ptr<base::DictionaryValue>(
+ return std::unique_ptr<base::DictionaryValue>(
ClientToServerResponseToValue(response_, false));
}
-scoped_ptr<ProtocolEvent> ClearServerDataResponseEvent::Clone() const {
- return scoped_ptr<ProtocolEvent>(
+std::unique_ptr<ProtocolEvent> ClearServerDataResponseEvent::Clone() const {
+ return std::unique_ptr<ProtocolEvent>(
new ClearServerDataResponseEvent(timestamp_, result_, response_));
}

Powered by Google App Engine
This is Rietveld 408576698