зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
dfcf976fc9
Коммит
dbd88a8bc7
|
@ -18,6 +18,7 @@
|
||||||
#include "nsXPCOMPrivate.h"
|
#include "nsXPCOMPrivate.h"
|
||||||
#include "mozilla/Services.h"
|
#include "mozilla/Services.h"
|
||||||
#include "nsNativeCharsetUtils.h"
|
#include "nsNativeCharsetUtils.h"
|
||||||
|
#include "nsIXULAppInfo.h"
|
||||||
#include "nsIConsoleService.h"
|
#include "nsIConsoleService.h"
|
||||||
#include "mozilla/Unused.h"
|
#include "mozilla/Unused.h"
|
||||||
#include "GMPDecryptorParent.h"
|
#include "GMPDecryptorParent.h"
|
||||||
|
@ -151,6 +152,17 @@ GeckoMediaPluginService::GeckoMediaPluginService()
|
||||||
, mShuttingDownOnGMPThread(false)
|
, mShuttingDownOnGMPThread(false)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(NS_IsMainThread());
|
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()
|
GeckoMediaPluginService::~GeckoMediaPluginService()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче