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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 609923004: Cleanup usage of scoped_ptr<> in remoting for C++11 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 0cb617542cbe9a0ace5952422bf74d0ef47cdae1..837f848b6f6f743e6d61ca4f185d10b7617fbd27 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -800,7 +800,7 @@ void HostProcess::OnInitializePairingRegistry(
if (!result)
return;
- pairing_registry_delegate_ = delegate.PassAs<PairingRegistry::Delegate>();
+ pairing_registry_delegate_ = delegate.Pass();
#else // !defined(OS_WIN)
NOTREACHED();
#endif // !defined(OS_WIN)
@@ -1278,7 +1278,7 @@ void HostProcess::StartHost() {
scoped_ptr<VideoFrameRecorderHostExtension> frame_recorder_extension(
new VideoFrameRecorderHostExtension());
frame_recorder_extension->SetMaxContentBytes(frame_recorder_buffer_size_);
- host_->AddExtension(frame_recorder_extension.PassAs<HostExtension>());
+ host_->AddExtension(frame_recorder_extension.Pass());
}
// TODO(simonmorris): Get the maximum session duration from a policy.

Powered by Google App Engine
This is Rietveld 408576698