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

Unified Diff: webkit/plugins/ppapi/ppb_video_capture_impl.cc

Issue 10830063: refactor EnumerateDevices to make it a persistent request. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unit test Created 8 years, 4 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_audio_input_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_video_capture_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_video_capture_impl.cc (revision 150440)
+++ webkit/plugins/ppapi/ppb_video_capture_impl.cc (working copy)
@@ -312,6 +312,10 @@
if (succeeded)
devices_data_ = devices;
+ PluginInstance* instance = ResourceHelper::GetPluginInstance(this);
+ if (instance)
+ instance->delegate()->StopEnumerateDevices(request_id);
+
OnEnumerateDevicesComplete(succeeded ? PP_OK : PP_ERROR_FAILED, devices);
}
« no previous file with comments | « webkit/plugins/ppapi/ppb_audio_input_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698