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

Unified Diff: content/browser/battery_status/battery_monitor_integration_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/battery_status/battery_monitor_integration_browsertest.cc
diff --git a/content/browser/battery_status/battery_monitor_integration_browsertest.cc b/content/browser/battery_status/battery_monitor_integration_browsertest.cc
index 5115c3f418de6458cf36e1f12285f7dc1b023006..e8c6c8523c35b9cdf2988acb2420d8ed95ff3eca 100644
--- a/content/browser/battery_status/battery_monitor_integration_browsertest.cc
+++ b/content/browser/battery_status/battery_monitor_integration_browsertest.cc
@@ -12,7 +12,6 @@
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_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_navigation_observer.h"
@@ -21,6 +20,7 @@
#include "content/shell/browser/shell_content_browser_client.h"
#include "device/battery/battery_monitor.mojom.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "services/shell/public/cpp/interface_registry.h"
// These tests run against a dummy implementation of the BatteryMonitor service.
// That is, they verify that the service implementation is correctly exposed to
@@ -89,10 +89,10 @@ class FakeBatteryMonitor : public device::BatteryMonitor {
// declared above.
class TestContentBrowserClient : public ContentBrowserClient {
public:
- void RegisterRenderProcessMojoServices(
- ServiceRegistry* registry,
+ void ExposeInterfacesToRenderer(
+ shell::InterfaceRegistry* registry,
RenderProcessHost* render_process_host) override {
- registry->AddService(base::Bind(&FakeBatteryMonitor::Create));
+ registry->AddInterface(base::Bind(&FakeBatteryMonitor::Create));
}
void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
« no previous file with comments | « components/web_cache/browser/web_cache_manager.cc ('k') | content/browser/browser_child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698