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

Unified Diff: trunk/src/content/renderer/web_ui_mojo_context_state.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
Index: trunk/src/content/renderer/web_ui_mojo_context_state.cc
===================================================================
--- trunk/src/content/renderer/web_ui_mojo_context_state.cc (revision 258768)
+++ trunk/src/content/renderer/web_ui_mojo_context_state.cc (working copy)
@@ -35,7 +35,7 @@
const char kModulePrefix[] = "chrome://mojo/";
void RunMain(base::WeakPtr<gin::Runner> runner,
- mojo::ScopedMessagePipeHandle* handle,
+ mojo::ScopedHandle* handle,
v8::Handle<v8::Value> module) {
v8::Isolate* isolate = runner->GetContextHolder()->isolate();
v8::Handle<v8::Function> start;
@@ -70,10 +70,9 @@
runner_->GetContextHolder()->context())->RemoveObserver(this);
}
-void WebUIMojoContextState::SetHandle(mojo::ScopedMessagePipeHandle handle) {
+void WebUIMojoContextState::SetHandle(mojo::ScopedHandle handle) {
gin::ContextHolder* context_holder = runner_->GetContextHolder();
- mojo::ScopedMessagePipeHandle* passed_handle =
- new mojo::ScopedMessagePipeHandle(handle.Pass());
+ mojo::ScopedHandle* passed_handle = new mojo::ScopedHandle(handle.Pass());
gin::ModuleRegistry::From(context_holder->context())->LoadModule(
context_holder->isolate(),
"main",
« no previous file with comments | « trunk/src/content/renderer/web_ui_mojo_context_state.h ('k') | trunk/src/content/test/data/web_ui_mojo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698