Index: mojo/apps/js/bindings/support.cc |
diff --git a/mojo/apps/js/bindings/support.cc b/mojo/apps/js/bindings/support.cc |
index e07cc093721956c19ff764db56074458751d0db2..c08fcf625ae993687b14408bf2a55ad13f5b664e 100644 |
--- a/mojo/apps/js/bindings/support.cc |
+++ b/mojo/apps/js/bindings/support.cc |
@@ -24,15 +24,15 @@ namespace { |
WaitingCallback* AsyncWait(const gin::Arguments& args, mojo::Handle handle, |
MojoWaitFlags flags, |
v8::Handle<v8::Function> callback) { |
- scoped_refptr<WaitingCallback> waiting_callback = |
+ gin::Handle<WaitingCallback> waiting_callback = |
WaitingCallback::Create(args.isolate(), callback); |
BindingsSupport::AsyncWaitID wait_id = BindingsSupport::Get()->AsyncWait( |
- handle, flags, waiting_callback.get()); |
+ handle, flags, waiting_callback.Get()); |
waiting_callback->set_wait_id(wait_id); |
- return waiting_callback.get(); |
+ return waiting_callback.Get(); |
} |
void CancelWait(WaitingCallback* waiting_callback) { |