Index: content/browser/webui/web_ui_mojo_browsertest.cc |
diff --git a/content/browser/webui/web_ui_mojo_browsertest.cc b/content/browser/webui/web_ui_mojo_browsertest.cc |
index fb1fbf0da6be5ad1005b1b337be183d8600bb67a..c3220264681a0a97f56acf2b6d9c35f7d701a7b1 100644 |
--- a/content/browser/webui/web_ui_mojo_browsertest.cc |
+++ b/content/browser/webui/web_ui_mojo_browsertest.cc |
@@ -23,7 +23,6 @@ |
#include "content/public/browser/web_ui_data_source.h" |
#include "content/public/common/content_paths.h" |
#include "content/public/common/content_switches.h" |
-#include "content/public/common/service_registry.h" |
#include "content/public/common/url_utils.h" |
#include "content/public/test/browser_test_utils.h" |
#include "content/public/test/content_browser_test.h" |
@@ -33,6 +32,7 @@ |
#include "mojo/public/cpp/bindings/binding.h" |
#include "mojo/public/cpp/bindings/interface_request.h" |
#include "net/test/embedded_test_server/embedded_test_server.h" |
+#include "services/shell/public/cpp/interface_registry.h" |
namespace content { |
namespace { |
@@ -130,7 +130,7 @@ class PingTestWebUIController : public TestWebUIController { |
// WebUIController overrides: |
void RenderViewCreated(RenderViewHost* render_view_host) override { |
- render_view_host->GetMainFrame()->GetServiceRegistry()->AddService( |
+ render_view_host->GetMainFrame()->GetInterfaceRegistry()->AddInterface( |
base::Bind(&PingTestWebUIController::CreateHandler, |
base::Unretained(this))); |
} |