Bug 1313497 - Use InvokeAsync with Storages in GMPServiceParent - r=jya
authorGerald Squelart <gsquelart@mozilla.com>
Sun, 13 Nov 2016 17:03:35 +1100
changeset 324383 7b4b358976d41bc4245935954c48c94a3372d44f
parent 324382 30674252d7f55602dcc9502daf7f00337df29278
child 324384 4e38b63c78297a4c3471f0cf2b896e26c04a5c1e
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjya
bugs1313497
milestone53.0a1
Bug 1313497 - Use InvokeAsync with Storages in GMPServiceParent - r=jya MozReview-Commit-ID: LnbzlqQIWco
dom/media/gmp/GMPServiceParent.cpp
--- a/dom/media/gmp/GMPServiceParent.cpp
+++ b/dom/media/gmp/GMPServiceParent.cpp
@@ -901,17 +901,19 @@ GeckoMediaPluginServiceParent::AsyncAddP
 {
   RefPtr<AbstractThread> thread(GetAbstractGMPThread());
   if (!thread) {
     return GenericPromise::CreateAndReject(NS_ERROR_FAILURE, __func__);
   }
 
   nsString dir(aDirectory);
   RefPtr<GeckoMediaPluginServiceParent> self = this;
-  return InvokeAsync(thread, this, __func__, &GeckoMediaPluginServiceParent::AddOnGMPThread, dir)
+  return InvokeAsync<nsString&&>(
+           thread, this, __func__,
+           &GeckoMediaPluginServiceParent::AddOnGMPThread, dir)
     ->Then(AbstractThread::MainThread(), __func__,
       [dir, self]() -> void {
         LOGD(("GeckoMediaPluginServiceParent::AsyncAddPluginDirectory %s succeeded",
               NS_ConvertUTF16toUTF8(dir).get()));
         MOZ_ASSERT(NS_IsMainThread());
         self->UpdateContentProcessGMPCapabilities();
       },
       [dir]() -> void {