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

Unified Diff: mojo/shell/application_manager_apptest_target.cc

Issue 1465793005: Pass CapabilityFilter via CreateInstanceForHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/shell/application_manager_apptest_target.cc
diff --git a/mojo/shell/application_manager_apptest_target.cc b/mojo/shell/application_manager_apptest_target.cc
index aa7bc7847674c9a96c2b9e71d14cb6f081f878db..f6eea3df2b0f8c27ef64f8184b6e5001cb1f4b90 100644
--- a/mojo/shell/application_manager_apptest_target.cc
+++ b/mojo/shell/application_manager_apptest_target.cc
@@ -7,7 +7,6 @@
#include "mojo/application/public/cpp/application_connection.h"
#include "mojo/application/public/cpp/application_delegate.h"
#include "mojo/application/public/cpp/application_impl.h"
-#include "mojo/converters/network/network_type_converters.h"
#include "mojo/runner/child/test_native_main.h"
#include "mojo/runner/init.h"
#include "mojo/shell/application_manager_apptests.mojom.h"
@@ -25,9 +24,7 @@ class TargetApplicationDelegate : public mojo::ApplicationDelegate {
// mojo::ApplicationDelegate:
void Initialize(mojo::ApplicationImpl* app) override {
CreateInstanceForHandleTestPtr service;
- app->ConnectToService(
- mojo::URLRequest::From(std::string("mojo:mojo_shell_apptests")),
- &service);
+ app->ConnectToService("mojo:mojo_shell_apptests", &service);
service->Ping("From Target");
}
bool ConfigureIncomingConnection(

Powered by Google App Engine
This is Rietveld 408576698