Bug 1324926 - Log Gecko version and buildID in GMP log. r=gerald

MozReview-Commit-ID: 3QLi8aCrqUF

--HG--
extra : rebase_source : 7148b586bd82cc042db9f76101c962d078cff8d6
This commit is contained in:
Chris Pearce 2016-12-21 09:53:15 +13:00
Родитель dfcf976fc9
Коммит dbd88a8bc7
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -18,6 +18,7 @@
#include "nsXPCOMPrivate.h"
#include "mozilla/Services.h"
#include "nsNativeCharsetUtils.h"
#include "nsIXULAppInfo.h"
#include "nsIConsoleService.h"
#include "mozilla/Unused.h"
#include "GMPDecryptorParent.h"
@ -151,6 +152,17 @@ GeckoMediaPluginService::GeckoMediaPluginService()
, mShuttingDownOnGMPThread(false)
{
MOZ_ASSERT(NS_IsMainThread());
nsCOMPtr<nsIXULAppInfo> appInfo = do_GetService("@mozilla.org/xre/app-info;1");
if (appInfo) {
nsAutoCString version;
nsAutoCString buildID;
if (NS_SUCCEEDED(appInfo->GetVersion(version)) &&
NS_SUCCEEDED(appInfo->GetAppBuildID(buildID))) {
LOGD(("GeckoMediaPluginService created; Gecko version=%s buildID=%s",
version.get(), buildID.get()));
}
}
}
GeckoMediaPluginService::~GeckoMediaPluginService()