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

Unified Diff: remoting/signaling/chromoting_event.cc

Issue 1945443002: Convert callers of base::DeepCopy() to base::CreateDeepCopy() in //remoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 3 more 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
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/chromoting_event.cc
diff --git a/remoting/signaling/chromoting_event.cc b/remoting/signaling/chromoting_event.cc
index 7b52c9be6842a2c466d07aeeb86da983f86cd1fd..a284fa39a2a12612fb482993d74a569f83291aa7 100644
--- a/remoting/signaling/chromoting_event.cc
+++ b/remoting/signaling/chromoting_event.cc
@@ -25,7 +25,7 @@ ChromotingEvent::ChromotingEvent(Type type) : ChromotingEvent() {
ChromotingEvent::ChromotingEvent(const ChromotingEvent& other) {
try_count_ = other.try_count_;
- values_map_.reset(other.values_map_->DeepCopy());
+ values_map_ = other.values_map_->CreateDeepCopy();
}
ChromotingEvent::ChromotingEvent(ChromotingEvent&& other) {
@@ -38,7 +38,7 @@ ChromotingEvent::~ChromotingEvent() {}
ChromotingEvent& ChromotingEvent::operator=(const ChromotingEvent& other) {
if (this != &other) {
try_count_ = other.try_count_;
- values_map_.reset(other.values_map_->DeepCopy());
+ values_map_ = other.values_map_->CreateDeepCopy();
}
return *this;
}
@@ -94,7 +94,7 @@ void ChromotingEvent::IncrementTryCount() {
std::unique_ptr<base::DictionaryValue> ChromotingEvent::CopyDictionaryValue()
const {
- return std::unique_ptr<base::DictionaryValue>(values_map_->DeepCopy());
+ return values_map_->CreateDeepCopy();
}
// static
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698