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

Unified Diff: trunk/src/content/renderer/web_ui_mojo.cc

Issue 208263008: Revert 258763 "Adds plumbing to pass WebUI mojo::Handle from bro..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « trunk/src/content/renderer/web_ui_mojo.h ('k') | trunk/src/content/renderer/web_ui_mojo_context_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/renderer/web_ui_mojo.cc
===================================================================
--- trunk/src/content/renderer/web_ui_mojo.cc (revision 258768)
+++ trunk/src/content/renderer/web_ui_mojo.cc (working copy)
@@ -48,16 +48,16 @@
CreateContextState();
}
-void WebUIMojo::SetBrowserHandle(mojo::ScopedMessagePipeHandle handle) {
+WebUIMojo::~WebUIMojo() {
+}
+
+void WebUIMojo::OnSetBrowserHandle(MojoHandle handle) {
v8::HandleScope handle_scope(blink::mainThreadIsolate());
WebUIMojoContextState* state = GetContextState();
if (state)
- state->SetHandle(handle.Pass());
+ state->SetHandle(mojo::MakeScopedHandle(mojo::Handle(handle)));
}
-WebUIMojo::~WebUIMojo() {
-}
-
void WebUIMojo::CreateContextState() {
v8::HandleScope handle_scope(blink::mainThreadIsolate());
blink::WebFrame* frame = render_view()->GetWebView()->mainFrame();
« no previous file with comments | « trunk/src/content/renderer/web_ui_mojo.h ('k') | trunk/src/content/renderer/web_ui_mojo_context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698