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

Unified Diff: sync/internal_api/events/normal_get_updates_request_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/normal_get_updates_request_event.cc
diff --git a/sync/internal_api/events/normal_get_updates_request_event.cc b/sync/internal_api/events/normal_get_updates_request_event.cc
index cbece53304e83989c93e225ef9f1a4441d8ab9f3..e58bb2f8200fac03a152e59d07f2843086bf70f2 100644
--- a/sync/internal_api/events/normal_get_updates_request_event.cc
+++ b/sync/internal_api/events/normal_get_updates_request_event.cc
@@ -67,21 +67,16 @@ std::string NormalGetUpdatesRequestEvent::GetDetails() const {
return details;
}
-scoped_ptr<base::DictionaryValue>
+std::unique_ptr<base::DictionaryValue>
NormalGetUpdatesRequestEvent::GetProtoMessage() const {
- return scoped_ptr<base::DictionaryValue>(
- ClientToServerMessageToValue(request_, false));
+ return std::unique_ptr<base::DictionaryValue>(
+ ClientToServerMessageToValue(request_, false));
}
-scoped_ptr<ProtocolEvent> NormalGetUpdatesRequestEvent::Clone() const {
- return scoped_ptr<ProtocolEvent>(
- new NormalGetUpdatesRequestEvent(
- timestamp_,
- nudged_types_,
- notified_types_,
- refresh_requested_types_,
- is_retry_,
- request_));
+std::unique_ptr<ProtocolEvent> NormalGetUpdatesRequestEvent::Clone() const {
+ return std::unique_ptr<ProtocolEvent>(new NormalGetUpdatesRequestEvent(
+ timestamp_, nudged_types_, notified_types_, refresh_requested_types_,
+ is_retry_, request_));
}
NormalGetUpdatesRequestEvent::NormalGetUpdatesRequestEvent(

Powered by Google App Engine
This is Rietveld 408576698