Index: ui/keyboard/webui/vk_webui_controller.cc |
diff --git a/ui/keyboard/webui/vk_webui_controller.cc b/ui/keyboard/webui/vk_webui_controller.cc |
index 5fd04ce85dba6f0e66dcd93b6be2643a565e085b..2e0138ba0b7814eb9185f1f167d2ab6b4d6a63da 100644 |
--- a/ui/keyboard/webui/vk_webui_controller.cc |
+++ b/ui/keyboard/webui/vk_webui_controller.cc |
@@ -68,7 +68,8 @@ |
void VKWebUIController::CreateAndStoreUIHandler( |
mojo::InterfaceRequest<KeyboardUIHandlerMojo> request) { |
- ui_handler_ = make_scoped_ptr(new VKMojoHandler(request.Pass())); |
+ ui_handler_ = scoped_ptr<VKMojoHandler>( |
+ mojo::WeakBindToRequest(new VKMojoHandler(), &request)); |
} |
//////////////////////////////////////////////////////////////////////////////// |