mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1126376 - Fix non-NIGHTLY_BUILD warnings-as-errors in toolkit/xre. r=Mossop
This commit is contained in:
parent
4dbdbf4389
commit
b74bac2fa1
@ -1899,7 +1899,6 @@ ProfileLockedDialog(nsIFile* aProfileDir, nsIFile* aProfileLocalDir,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static nsresult
|
||||
ProfileMissingDialog(nsINativeAppSupport* aNative)
|
||||
{
|
||||
@ -2202,7 +2201,9 @@ SelectProfile(nsIProfileLock* *aResult, nsIToolkitProfileService* aProfileSvc, n
|
||||
// Check that the profile to reset is the default since reset and migration are only
|
||||
// supported in that case.
|
||||
bool currentIsSelected;
|
||||
GetCurrentProfileIsDefault(aProfileSvc, lf, ¤tIsSelected);
|
||||
rv = GetCurrentProfileIsDefault(aProfileSvc, lf, ¤tIsSelected);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (!currentIsSelected) {
|
||||
NS_WARNING("Profile reset is only supported for the default profile.");
|
||||
gDoProfileReset = gDoMigration = false;
|
||||
@ -3501,7 +3502,6 @@ XREMain::XRE_mainStartup(bool* aExitFlag)
|
||||
|
||||
SetShutdownChecks();
|
||||
|
||||
|
||||
// Enable Telemetry IO Reporting on DEBUG, nightly and local builds
|
||||
#ifdef DEBUG
|
||||
mozilla::Telemetry::InitIOReporting(gAppData->xreDirectory);
|
||||
@ -4578,6 +4578,7 @@ XRE_IsParentProcess()
|
||||
return XRE_GetProcessType() == GeckoProcessType_Default;
|
||||
}
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
static void
|
||||
LogE10sBlockedReason(const char *reason) {
|
||||
gBrowserTabsRemoteDisabledReason.Assign(NS_ConvertASCIItoUTF16(reason));
|
||||
@ -4590,6 +4591,7 @@ LogE10sBlockedReason(const char *reason) {
|
||||
console->LogStringMessage(msg.get());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
mozilla::BrowserTabsRemoteAutostart()
|
||||
@ -4661,7 +4663,10 @@ mozilla::BrowserTabsRemoteAutostart()
|
||||
|
||||
if (accelDisabled) {
|
||||
gBrowserTabsRemoteAutostart = false;
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
LogE10sBlockedReason("Hardware acceleration is disabled");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif // defined(XP_MACOSX)
|
||||
@ -4732,4 +4737,3 @@ SetupErrorHandling(const char* progname)
|
||||
// Unbuffer stdout, needed for tinderbox tests.
|
||||
setbuf(stdout, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user