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

Unified Diff: content/browser/utility_process_host_impl_browsertest.cc

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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: content/browser/utility_process_host_impl_browsertest.cc
diff --git a/content/browser/utility_process_host_impl_browsertest.cc b/content/browser/utility_process_host_impl_browsertest.cc
index b8a496be6a50515b27418984714749cc2b0e74e0..b71669c61477241086d38410aadea6eca6e12a0d 100644
--- a/content/browser/utility_process_host_impl_browsertest.cc
+++ b/content/browser/utility_process_host_impl_browsertest.cc
@@ -8,10 +8,10 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
-#include "content/public/common/service_registry.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_mojo_service.mojom.h"
+#include "services/shell/public/cpp/interface_provider.h"
namespace content {
@@ -38,8 +38,7 @@ class UtilityProcessHostImplBrowserTest : public ContentBrowserTest {
#endif
EXPECT_TRUE(host->Start());
- ServiceRegistry* service_registry = host->GetServiceRegistry();
- service_registry->ConnectToRemoteService(mojo::GetProxy(&service_));
+ host->GetRemoteInterfaces()->GetInterface(&service_);
service_->DoSomething(base::Bind(
&UtilityProcessHostImplBrowserTest::OnSomething,
base::Unretained(this)));
« no previous file with comments | « content/browser/utility_process_host_impl.cc ('k') | content/child/background_sync/background_sync_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698