Bug 1020368 - [Camera][Gecko] Remove direct JS_*() calls from CameraRecorderProfiles.cpp/.h. r=mikeh a=sylvestre
authorJustin Wood <Callek@gmail.com>
Tue, 10 Feb 2015 14:28:25 -0500
changeset 243776 af24cff80f2d
parent 243775 e88b1974bc53
child 243777 66fe8c902007
child 243779 7fc73656a5f1
push id4473
push userCallek@gmail.com
push date2015-02-16 02:36 +0000
treeherdermozilla-beta@af24cff80f2d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikeh, sylvestre
bugs1020368
milestone36.0
Bug 1020368 - [Camera][Gecko] Remove direct JS_*() calls from CameraRecorderProfiles.cpp/.h. r=mikeh a=sylvestre
dom/camera/DOMCameraCapabilities.cpp
--- a/dom/camera/DOMCameraCapabilities.cpp
+++ b/dom/camera/DOMCameraCapabilities.cpp
@@ -113,18 +113,18 @@ CameraRecorderProfile::WrapObject(JSCont
 }
 
 CameraRecorderProfile::CameraRecorderProfile(nsISupports* aParent,
                                              const ICameraControl::RecorderProfile& aProfile)
   : mParent(aParent)
   , mName(aProfile.GetName())
   , mContainerFormat(aProfile.GetContainer())
   , mMimeType(aProfile.GetMimeType())
-  , mVideo(new CameraRecorderVideoProfile(this, aProfile.GetVideo()))
-  , mAudio(new CameraRecorderAudioProfile(this, aProfile.GetAudio()))
+  , mVideo(new CameraRecorderVideoProfile(MOZ_THIS_IN_INITIALIZER_LIST(), aProfile.GetVideo()))
+  , mAudio(new CameraRecorderAudioProfile(MOZ_THIS_IN_INITIALIZER_LIST(), aProfile.GetAudio()))
 {
   DOM_CAMERA_LOGT("%s:%d : this=%p\n", __func__, __LINE__, this);
   DOM_CAMERA_LOGI("profile: '%s' container=%s mime-type=%s\n",
     NS_ConvertUTF16toUTF8(mName).get(),
     NS_ConvertUTF16toUTF8(mContainerFormat).get(),
     NS_ConvertUTF16toUTF8(mMimeType).get());
 }