mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1078027: Move BrowserTabsRemoteAutostart()'s local-var 'testPref' inside the #ifdef where its only usage lives, to fix unused-variable warning. r=jimm
This commit is contained in:
parent
7c1325fe6c
commit
2449a1f4dd
@ -4577,10 +4577,10 @@ mozilla::BrowserTabsRemoteAutostart()
|
||||
gBrowserTabsRemoteAutostartInitialized = true;
|
||||
bool optInPref = Preferences::GetBool("browser.tabs.remote.autostart", false);
|
||||
bool trialPref = Preferences::GetBool("browser.tabs.remote.autostart.1", false);
|
||||
bool testPref = Preferences::GetBool("layers.offmainthreadcomposition.testing.enabled", false);
|
||||
#if !defined(NIGHTLY_BUILD)
|
||||
// When running tests with 'layers.offmainthreadcomposition.testing.enabled' and autostart
|
||||
// set to true, return enabled. These tests must be allowed to run remotely.
|
||||
bool testPref = Preferences::GetBool("layers.offmainthreadcomposition.testing.enabled", false);
|
||||
if (testPref && optInPref) {
|
||||
gBrowserTabsRemoteAutostart = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user