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

Unified Diff: services/files/files_test_base.cc

Issue 1915403002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 8 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 | « services/debugger/debugger.cc ('k') | services/http_server/http_server_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/files_test_base.cc
diff --git a/services/files/files_test_base.cc b/services/files/files_test_base.cc
index e1826f11317351542230494e223865c223ddd736..87ac709756635cf2cb0fb88c7f610053c1499436 100644
--- a/services/files/files_test_base.cc
+++ b/services/files/files_test_base.cc
@@ -5,6 +5,7 @@
#include "services/files/files_test_base.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/services/files/interfaces/files.mojom.h"
#include "mojo/services/files/interfaces/types.mojom.h"
@@ -17,11 +18,8 @@ FilesTestBase::~FilesTestBase() {}
void FilesTestBase::SetUp() {
test::ApplicationTestBase::SetUp();
- // TODO(vtl): Fix this.
- FilesPtr files_async;
- application_impl()->ConnectToServiceDeprecated("mojo:files", &files_async);
- files_ =
- SynchronousInterfacePtr<Files>::Create(files_async.PassInterfaceHandle());
+ ConnectToService(application_impl()->shell(), "mojo:files",
+ GetSynchronousProxy(&files_));
}
void FilesTestBase::GetTemporaryRoot(
« no previous file with comments | « services/debugger/debugger.cc ('k') | services/http_server/http_server_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698