Index: remoting/client/plugin/chromoting_instance.cc |
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc |
index ecaa19a3fa7986b10ad422eaa09b92fde9800e11..95c0fe4ca2c37f892a1363529a01344f06a779bf 100644 |
--- a/remoting/client/plugin/chromoting_instance.cc |
+++ b/remoting/client/plugin/chromoting_instance.cc |
@@ -360,7 +360,7 @@ void ChromotingInstance::OnVideoFrameDirtyRegion( |
} |
std::unique_ptr<base::DictionaryValue> data(new base::DictionaryValue()); |
- data->Set("rects", rects_value.release()); |
+ data->Set("rects", std::move(rects_value)); |
PostLegacyJsonMessage("onDebugRegion", std::move(data)); |
} |
@@ -1002,7 +1002,7 @@ void ChromotingInstance::PostLegacyJsonMessage( |
std::unique_ptr<base::DictionaryValue> data) { |
base::DictionaryValue message; |
message.SetString("method", method); |
- message.Set("data", data.release()); |
+ message.Set("data", std::move(data)); |
std::string message_json; |
base::JSONWriter::Write(message, &message_json); |