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

Unified Diff: chromecast/renderer/media/media_channel_proxy.cc

Issue 1875623002: Convert //chromecast 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
« no previous file with comments | « chromecast/renderer/media/media_channel_proxy.h ('k') | chromecast/renderer/media/media_pipeline_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/media_channel_proxy.cc
diff --git a/chromecast/renderer/media/media_channel_proxy.cc b/chromecast/renderer/media/media_channel_proxy.cc
index cbbcdafa00d09d9b0868010580c384b2540dc811..e4891fd6eac83ac2893e0bc3fc6bfe53138df3e8 100644
--- a/chromecast/renderer/media/media_channel_proxy.cc
+++ b/chromecast/renderer/media/media_channel_proxy.cc
@@ -29,8 +29,8 @@ void MediaChannelProxy::Open(LoadType load_type) {
is_open_ = true;
// Browser side.
- bool success = Send(
- scoped_ptr<IPC::Message>(new CmaHostMsg_CreateMedia(id_, load_type)));
+ bool success = Send(std::unique_ptr<IPC::Message>(
+ new CmaHostMsg_CreateMedia(id_, load_type)));
if (!success) {
is_open_ = false;
id_ = 0;
@@ -42,7 +42,7 @@ void MediaChannelProxy::Close() {
return;
// Browser side.
- Send(scoped_ptr<IPC::Message>(new CmaHostMsg_DestroyMedia(id_)));
+ Send(std::unique_ptr<IPC::Message>(new CmaHostMsg_DestroyMedia(id_)));
// Renderer side.
is_open_ = false;
@@ -71,7 +71,7 @@ bool MediaChannelProxy::SetVideoDelegate(
return filter_->SetVideoDelegate(id_, video_delegate);
}
-bool MediaChannelProxy::Send(scoped_ptr<IPC::Message> message) {
+bool MediaChannelProxy::Send(std::unique_ptr<IPC::Message> message) {
if (!is_open_)
return false;
return filter_->Send(std::move(message));
« no previous file with comments | « chromecast/renderer/media/media_channel_proxy.h ('k') | chromecast/renderer/media/media_pipeline_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698