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

Unified Diff: mojo/shell/external_application_listener_unittest.cc

Issue 646483009: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflow Created 6 years, 2 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 | « mojo/shell/context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/external_application_listener_unittest.cc
diff --git a/mojo/shell/external_application_listener_unittest.cc b/mojo/shell/external_application_listener_unittest.cc
index 6225dfd018329182fadba3df51fb21653209aee3..7f675aeda3ff9cbd6b4b9e01e7863898789990b2 100644
--- a/mojo/shell/external_application_listener_unittest.cc
+++ b/mojo/shell/external_application_listener_unittest.cc
@@ -175,8 +175,7 @@ void ConnectAndRegisterOnIOThread(const base::FilePath& socket_path,
connector->url(), loop, quit_callback));
// Since connectee won't be ready when connector is done registering, pass
// in a do-nothing callback.
- connector->Register(connector_app_impl.PassAs<InterfaceImpl<Application>>(),
- base::Bind(&NoOp));
+ connector->Register(connector_app_impl.Pass(), base::Bind(&NoOp));
// Connect the second app to the registrar.
connectee->ConnectSynchronously(socket_path);
@@ -186,7 +185,7 @@ void ConnectAndRegisterOnIOThread(const base::FilePath& socket_path,
// After connectee is successfully registered, connector should be
// able to connect to is by URL. Pass in a callback to attempt the
// app -> app connection.
- connectee->Register(connectee_app_impl.PassAs<InterfaceImpl<Application>>(),
+ connectee->Register(connectee_app_impl.Pass(),
base::Bind(&ConnectToApp, connector, connectee));
}
« no previous file with comments | « mojo/shell/context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698