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

Unified Diff: chrome/browser/ui/webui/mojo_web_ui_controller.h

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
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
« no previous file with comments | « chrome/browser/extensions/chrome_mojo_service_registration.cc ('k') | chrome/gpu/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/mojo_web_ui_controller.h
diff --git a/chrome/browser/ui/webui/mojo_web_ui_controller.h b/chrome/browser/ui/webui/mojo_web_ui_controller.h
index 68bd514e7ca6f208856c893258073a4ddbf5ef68..53916238c16895a24e6421bad3639dff8944d98c 100644
--- a/chrome/browser/ui/webui/mojo_web_ui_controller.h
+++ b/chrome/browser/ui/webui/mojo_web_ui_controller.h
@@ -16,6 +16,7 @@
#include "content/public/browser/web_ui_controller.h"
#include "content/public/common/service_registry.h"
#include "mojo/public/cpp/system/core.h"
+#include "services/shell/public/cpp/interface_registry.h"
class MojoWebUIHandler;
@@ -47,8 +48,8 @@ class MojoWebUIController : public MojoWebUIControllerBase {
~MojoWebUIController() override {}
void RenderViewCreated(content::RenderViewHost* render_view_host) override {
MojoWebUIControllerBase::RenderViewCreated(render_view_host);
- render_view_host->GetMainFrame()->GetServiceRegistry()->
- AddService<Interface>(
+ render_view_host->GetMainFrame()->GetInterfaceRegistry()->
+ AddInterface<Interface>(
base::Bind(&MojoWebUIController::BindUIHandler,
weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « chrome/browser/extensions/chrome_mojo_service_registration.cc ('k') | chrome/gpu/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698