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

Unified Diff: chromecast/media/cma/test/mock_frame_consumer.cc

Issue 2745053002: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chromecast/ (Closed)
Patch Set: Created 3 years, 9 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 | « chromecast/browser/url_request_context_factory.cc ('k') | chromecast/media/cma/test/mock_frame_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/test/mock_frame_consumer.cc
diff --git a/chromecast/media/cma/test/mock_frame_consumer.cc b/chromecast/media/cma/test/mock_frame_consumer.cc
index 3c3dec6f3004e6540f9370f42ebb6dab16293c8a..8a32b1afe30f4d430fd9fc5e29a46ccc7d142214 100644
--- a/chromecast/media/cma/test/mock_frame_consumer.cc
+++ b/chromecast/media/cma/test/mock_frame_consumer.cc
@@ -34,7 +34,7 @@ void MockFrameConsumer::Configure(
std::unique_ptr<FrameGeneratorForTest> frame_generator) {
delayed_task_pattern_ = delayed_task_pattern;
last_read_aborted_by_flush_ = last_read_aborted_by_flush;
- frame_generator_.reset(frame_generator.release());
+ frame_generator_ = std::move(frame_generator);
}
void MockFrameConsumer::Start(const base::Closure& done_cb) {
« no previous file with comments | « chromecast/browser/url_request_context_factory.cc ('k') | chromecast/media/cma/test/mock_frame_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698