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:
Daniel Holbert 2014-10-06 09:25:12 -07:00
parent 7c1325fe6c
commit 2449a1f4dd

View File

@ -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;
}