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

Unified Diff: mojo/public/cpp/application/lib/application_test_base.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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: mojo/public/cpp/application/lib/application_test_base.cc
diff --git a/mojo/public/cpp/application/lib/application_test_base.cc b/mojo/public/cpp/application/lib/application_test_base.cc
index 8547e573541ab8ce5f355c82434786ec5c595dac..0c57925e31f40547a8274f313ab1edde62215d6f 100644
--- a/mojo/public/cpp/application/lib/application_test_base.cc
+++ b/mojo/public/cpp/application/lib/application_test_base.cc
@@ -4,6 +4,8 @@
#include "mojo/public/cpp/application/application_test_base.h"
+#include <utility>
+
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/environment/environment.h"
@@ -50,18 +52,18 @@ class ShellAndArgumentGrabber : public Application {
private:
// Application implementation.
- void Initialize(ShellPtr shell,
+ void Initialize(InterfaceHandle<Shell> shell,
Array<String> args,
const mojo::String& url) override {
*args_ = args.Pass();
g_url = url;
g_application_request = binding_.Unbind();
- g_shell = shell.Pass();
+ g_shell = ShellPtr::Create(std::move(shell));
}
void AcceptConnection(const String& requestor_url,
InterfaceRequest<ServiceProvider> services,
- ServiceProviderPtr exposed_services,
+ InterfaceHandle<ServiceProvider> exposed_services,
const String& url) override {
MOJO_CHECK(false);
}
« no previous file with comments | « mojo/public/cpp/application/lib/application_impl.cc ('k') | mojo/public/cpp/application/lib/service_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698