mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1487581 - Remove the wifi debugging preference;r=ladybenko
Depends on D23864. Wifi preference is not used anymore, removing it as well for consistency. Differential Revision: https://phabricator.services.mozilla.com/D23865 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
1138139498
commit
8d640df330
@ -39,7 +39,6 @@ class App extends PureComponent {
|
||||
selectedPage: Types.page,
|
||||
selectedRuntimeId: PropTypes.string,
|
||||
usbRuntimes: PropTypes.arrayOf(Types.runtime).isRequired,
|
||||
wifiEnabled: PropTypes.bool.isRequired,
|
||||
};
|
||||
}
|
||||
|
||||
@ -68,14 +67,12 @@ class App extends PureComponent {
|
||||
adbAddonStatus,
|
||||
dispatch,
|
||||
networkLocations,
|
||||
wifiEnabled,
|
||||
} = this.props;
|
||||
|
||||
return ConnectPage({
|
||||
adbAddonStatus,
|
||||
dispatch,
|
||||
networkLocations,
|
||||
wifiEnabled,
|
||||
});
|
||||
}
|
||||
|
||||
@ -184,7 +181,6 @@ const mapStateToProps = state => {
|
||||
selectedPage: state.ui.selectedPage,
|
||||
selectedRuntimeId: state.runtimes.selectedRuntimeId,
|
||||
usbRuntimes: state.runtimes.usbRuntimes,
|
||||
wifiEnabled: state.ui.wifiEnabled,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -37,7 +37,6 @@ class ConnectPage extends PureComponent {
|
||||
adbAddonStatus: Types.adbAddonStatus,
|
||||
dispatch: PropTypes.func.isRequired,
|
||||
networkLocations: PropTypes.arrayOf(Types.location).isRequired,
|
||||
wifiEnabled: PropTypes.bool.isRequired,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -99,8 +99,6 @@ const PREFERENCES = {
|
||||
PROCESS_DEBUGGING_ENABLED: "devtools.aboutdebugging.process-debugging",
|
||||
// Preference that drives the display of system addons in about:debugging.
|
||||
SHOW_SYSTEM_ADDONS: "devtools.aboutdebugging.showSystemAddons",
|
||||
// Temporary preference without any default value until wifi is enabled.
|
||||
WIFI_ENABLED: "devtools.aboutdebugging.wifi",
|
||||
};
|
||||
|
||||
const RUNTIME_PREFERENCE = {
|
||||
|
@ -49,11 +49,9 @@ function configureStore() {
|
||||
function getUiState() {
|
||||
const collapsibilities = getDebugTargetCollapsibilities();
|
||||
const locations = getNetworkLocations();
|
||||
const wifiEnabled = Services.prefs.getBoolPref(PREFERENCES.WIFI_ENABLED, false);
|
||||
const showSystemAddons = Services.prefs.getBoolPref(PREFERENCES.SHOW_SYSTEM_ADDONS,
|
||||
false);
|
||||
return new UiState(locations, collapsibilities, wifiEnabled,
|
||||
showSystemAddons);
|
||||
return new UiState(locations, collapsibilities, showSystemAddons);
|
||||
}
|
||||
|
||||
exports.configureStore = configureStore;
|
||||
|
@ -18,7 +18,7 @@ const {
|
||||
} = require("../constants");
|
||||
|
||||
function UiState(locations = [], debugTargetCollapsibilities = {},
|
||||
wifiEnabled = false, showSystemAddons = false) {
|
||||
showSystemAddons = false) {
|
||||
return {
|
||||
adbAddonStatus: null,
|
||||
debugTargetCollapsibilities,
|
||||
@ -28,7 +28,6 @@ function UiState(locations = [], debugTargetCollapsibilities = {},
|
||||
showProfilerDialog: false,
|
||||
showSystemAddons,
|
||||
temporaryInstallError: null,
|
||||
wifiEnabled,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -341,8 +341,6 @@ pref("devtools.responsive.showUserAgentInput", false);
|
||||
|
||||
// Enable new about:debugging.
|
||||
pref("devtools.aboutdebugging.new-enabled", false);
|
||||
// Enable the wifi feature.
|
||||
pref("devtools.aboutdebugging.wifi", false);
|
||||
// Show process debug targets.
|
||||
pref("devtools.aboutdebugging.process-debugging", false);
|
||||
// Stringified array of network locations that users can connect to.
|
||||
|
Loading…
Reference in New Issue
Block a user