[go: nahoru, domu]

Update ppapi::proxy::PluginResource to work with OnceCallback

Update users of PluginResource to use base::BindOnce() instead of
base::Bind()

Bug: 1007816

Change-Id: Iecb9a3a2771849bf74b26f61b08bfe176ece5fb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2764085
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Commit-Queue: Anand K Mistry <amistry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#863634}
diff --git a/ppapi/proxy/video_capture_resource.cc b/ppapi/proxy/video_capture_resource.cc
index 7e586fa..2879c3b7 100644
--- a/ppapi/proxy/video_capture_resource.cc
+++ b/ppapi/proxy/video_capture_resource.cc
@@ -93,7 +93,7 @@
   Call<PpapiPluginMsg_VideoCapture_OpenReply>(
       RENDERER,
       PpapiHostMsg_VideoCapture_Open(device_id, requested_info, buffer_count),
-      base::Bind(&VideoCaptureResource::OnPluginMsgOpenReply, this));
+      base::BindOnce(&VideoCaptureResource::OnPluginMsgOpenReply, this));
   return PP_OK_COMPLETIONPENDING;
 }