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

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

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | « no previous file | chrome/browser/ui/webui/omnibox/omnibox.mojom » ('j') | mojo/gles2/gles2_support_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/mojo_web_ui_controller.cc
diff --git a/chrome/browser/ui/webui/mojo_web_ui_controller.cc b/chrome/browser/ui/webui/mojo_web_ui_controller.cc
index 099efaf7a0332355dde6438075372eda6f5b1284..04ba05f3ec4b9a7827d4a415856870cfd047bb90 100644
--- a/chrome/browser/ui/webui/mojo_web_ui_controller.cc
+++ b/chrome/browser/ui/webui/mojo_web_ui_controller.cc
@@ -9,7 +9,7 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_ui_data_source.h"
#include "content/public/common/bindings_policy.h"
-#include "mojo/public/cpp/bindings/interface.h"
+#include "mojo/public/cpp/system/core.h"
MojoWebUIController::MojoWebUIController(content::WebUI* contents)
: WebUIController(contents),
@@ -23,9 +23,9 @@ void MojoWebUIController::RenderViewCreated(
content::RenderViewHost* render_view_host) {
render_view_host->AllowBindings(content::BINDINGS_POLICY_WEB_UI);
- mojo::InterfacePipe<mojo::AnyInterface, mojo::AnyInterface> pipe;
- ui_handler_ = CreateUIHandler(pipe.handle_to_peer.Pass());
- render_view_host->SetWebUIHandle(pipe.handle_to_self.Pass());
+ mojo::MessagePipe pipe;
+ ui_handler_ = CreateUIHandler(pipe.handle0.Pass());
+ render_view_host->SetWebUIHandle(pipe.handle1.Pass());
}
void MojoWebUIController::AddMojoResourcePath(const std::string& path,
« no previous file with comments | « no previous file | chrome/browser/ui/webui/omnibox/omnibox.mojom » ('j') | mojo/gles2/gles2_support_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698