| Index: chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.cc b/chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| index 4a45e5c7861196c2741e5f7003e27a65026a91dd..ee50d71f6a75cbff3d128fb813eb4800d12aefc5 100644
|
| --- a/chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| +++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/media/router/presentation_service_delegate_impl.h"
|
|
|
| #include <string>
|
| +#include <utility>
|
|
|
| #include "base/containers/scoped_ptr_hash_map.h"
|
| #include "base/containers/small_map.h"
|
| @@ -718,7 +719,7 @@ void PresentationServiceDelegateImpl::StartSession(
|
| error_cb));
|
| MediaRouterDialogController* controller =
|
| MediaRouterDialogController::GetOrCreateForWebContents(web_contents_);
|
| - if (!controller->ShowMediaRouterDialogForPresentation(request.Pass())) {
|
| + if (!controller->ShowMediaRouterDialogForPresentation(std::move(request))) {
|
| LOG(ERROR) << "Media router dialog already exists. Ignoring StartSession.";
|
| error_cb.Run(content::PresentationError(content::PRESENTATION_ERROR_UNKNOWN,
|
| "Unable to create dialog."));
|
| @@ -807,7 +808,7 @@ void PresentationServiceDelegateImpl::SendMessage(
|
| }
|
|
|
| if (message->is_binary()) {
|
| - router_->SendRouteBinaryMessage(route_id, message->data.Pass(),
|
| + router_->SendRouteBinaryMessage(route_id, std::move(message->data),
|
| send_message_cb);
|
| } else {
|
| router_->SendRouteMessage(route_id, message->message, send_message_cb);
|
|
|