#include "gin/public/context_holder.h"
#include "gin/try_catch.h"
#include "mojo/bindings/js/core.h"
+#include "mojo/bindings/js/handle.h"
#include "mojo/bindings/js/support.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
#include "third_party/WebKit/public/web/WebFrame.h"
v8::Handle<v8::Function> start;
CHECK(gin::ConvertFromV8(isolate, module, &start));
v8::Handle<v8::Value> args[] = {
- gin::ConvertToV8(isolate, handle->release().value()) };
+ gin::ConvertToV8(isolate, mojo::Handle(handle->release().value())) };
runner->Call(start, runner->global(), 1, args);
}
DCHECK_EQ(kModulePrefix,
response.url().string().utf8().substr(0, arraysize(kModulePrefix) - 1));
const std::string module =
- response.url().string().utf8().substr(arraysize(kModulePrefix));
+ response.url().string().utf8().substr(arraysize(kModulePrefix) - 1);
// We can't delete fetch right now as the arguments to this function come from
// it and are used below. Instead use a scope_ptr to cleanup.
scoped_ptr<ResourceFetcher> deleter(fetcher);