Bug 1519636 - Reformat recent changes to the Google coding style. r=marco

Updated with clang-format version 14.0.5 (taskcluster-YlgDNB2QSm-6a2LDw3kj6A)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D150093
This commit is contained in:
Andi-Bogdan Postelnicu 2022-06-23 09:27:12 +00:00
Родитель 6634aca00c
Коммит a933f9df8f
4 изменённых файлов: 18 добавлений и 14 удалений

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

@ -65,7 +65,8 @@ class GmpInitDoneRunnable : public Runnable {
mPCHandle(std::move(aPCHandle)) {}
NS_IMETHOD Run() override {
Telemetry::Accumulate(Telemetry::WEBRTC_GMP_INIT_SUCCESS, mResult == WEBRTC_VIDEO_CODEC_OK);
Telemetry::Accumulate(Telemetry::WEBRTC_GMP_INIT_SUCCESS,
mResult == WEBRTC_VIDEO_CODEC_OK);
if (mResult == WEBRTC_VIDEO_CODEC_OK) {
// Might be useful to notify the PeerConnection about successful init
// someday.

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

@ -17,8 +17,7 @@ nsXULElement* NS_NewXULResizerElement(
class XULResizerElement final : public nsXULElement {
public:
explicit XULResizerElement(
already_AddRefed<dom::NodeInfo>&& aNodeInfo)
explicit XULResizerElement(already_AddRefed<dom::NodeInfo>&& aNodeInfo)
: nsXULElement(std::move(aNodeInfo)) {}
MOZ_CAN_RUN_SCRIPT
@ -49,8 +48,8 @@ class XULResizerElement final : public nsXULElement {
* @param aMovement the amount the mouse was moved
* @param aResizerDirection resizer direction returned by GetDirection
*/
static void AdjustDimensions(int32_t* aPos, int32_t* aSize,
int32_t aMovement, int8_t aResizerDirection);
static void AdjustDimensions(int32_t* aPos, int32_t* aSize, int32_t aMovement,
int8_t aResizerDirection);
struct SizeInfo {
nsCString width, height;

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

@ -536,7 +536,8 @@ class Pref {
: HasUserValue());
if (!XRE_IsParentProcess() && sCrashOnBlocklistedPref &&
gContentProcessPrefsAreInited && ShouldSanitizePreference(this, XRE_IsContentProcess())) {
gContentProcessPrefsAreInited &&
ShouldSanitizePreference(this, XRE_IsContentProcess())) {
MOZ_CRASH_UNSAFE_PRINTF(
"Should not access the preference '%s' in the Content Processes",
Name());
@ -552,7 +553,8 @@ class Pref {
: HasUserValue());
if (!XRE_IsParentProcess() && sCrashOnBlocklistedPref &&
gContentProcessPrefsAreInited && ShouldSanitizePreference(this, XRE_IsContentProcess())) {
gContentProcessPrefsAreInited &&
ShouldSanitizePreference(this, XRE_IsContentProcess())) {
MOZ_CRASH_UNSAFE_PRINTF(
"Should not access the preference '%s' in the Content Processes",
Name());
@ -569,7 +571,8 @@ class Pref {
: HasUserValue());
if (!XRE_IsParentProcess() && sCrashOnBlocklistedPref &&
gContentProcessPrefsAreInited && ShouldSanitizePreference(this, XRE_IsContentProcess())) {
gContentProcessPrefsAreInited &&
ShouldSanitizePreference(this, XRE_IsContentProcess())) {
MOZ_CRASH_UNSAFE_PRINTF(
"Should not access the preference '%s' in the Content Processes",
Name());
@ -1043,7 +1046,8 @@ class MOZ_STACK_CLASS PrefWrapper : public PrefWrapperBase {
// This check will be performed in the above functions; but for NoneType
// we need to do it explicitly, then fall-through.
if (!XRE_IsParentProcess() && sCrashOnBlocklistedPref &&
gContentProcessPrefsAreInited && ShouldSanitizePreference(Name(), XRE_IsContentProcess())) {
gContentProcessPrefsAreInited &&
ShouldSanitizePreference(Name(), XRE_IsContentProcess())) {
MOZ_CRASH_UNSAFE_PRINTF(
"Should not access the preference '%s' in the Content Processes",
Name());

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

@ -1333,11 +1333,11 @@ bool SandboxBroker::SetSecurityLevelForUtilityProcess(
mitigations = sandbox::MITIGATION_STRICT_HANDLE_CHECKS |
sandbox::MITIGATION_DLL_SEARCH_ORDER;
// TODO: Bug 1766432 - Investigate why this crashes in MSAudDecMFT.dll during
// Utility AudioDecoder process startup only on 32-bits systems.
// Investigate also why it crashes (no idea where exactly) for MinGW64 builds
//
// TODO: Bug 1773005 - AAC seems to not work on Windows < 1703
// TODO: Bug 1766432 - Investigate why this crashes in MSAudDecMFT.dll during
// Utility AudioDecoder process startup only on 32-bits systems.
// Investigate also why it crashes (no idea where exactly) for MinGW64 builds
//
// TODO: Bug 1773005 - AAC seems to not work on Windows < 1703
if (IsWin10CreatorsUpdateOrLater()) {
#if defined(_M_X64) && !defined(__MINGW64__)
mitigations |= sandbox::MITIGATION_DYNAMIC_CODE_DISABLE;