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

Unified Diff: remoting/protocol/pepper_session_manager.cc

Issue 9283028: Add scoped_ptr<>::PassAs<>(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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/protocol/pepper_session_manager.cc
diff --git a/remoting/protocol/pepper_session_manager.cc b/remoting/protocol/pepper_session_manager.cc
index 09e0c6630c2eff03b2e8c5e4a61a66df6381b4fb..78842570ef2a3838e2d21b54196892095bf855d9 100644
--- a/remoting/protocol/pepper_session_manager.cc
+++ b/remoting/protocol/pepper_session_manager.cc
@@ -79,7 +79,7 @@ scoped_ptr<Session> PepperSessionManager::Connect(
session->StartConnection(host_jid, authenticator.Pass(), config.Pass(),
state_change_callback);
sessions_[session->session_id_] = session.get();
- return scoped_ptr<Session>(session.Pass());
+ return session.PassAs<Session>();
}
void PepperSessionManager::Close() {

Powered by Google App Engine
This is Rietveld 408576698