Hi Yoshi, On Tue, Dec 30, 2014 at 7:14 PM, Yoshi Huang <[email protected]> wrote: > Hi Tim > Will `make reset-gaia` also clear the prefs in Gecko back to original > settings? > If it couldn't, how does Gecko know it should go to the 'Default' state > instead of the previous state before rebooting?
|make reset-gaia| purges the profile, which includes prefs.js -- so the only state should reset to the pref default. > If it could, that will surpise me because it *resets* not only gaia but also > some gecko bits. > > Also the enabling/disabling states should be left to API implementation. > For example, In NFC it has different power states, the state used in P2P > sharing and in Card Emulation mode are different. > Adding many 'ING' states, IMO, could make the API difficult to use. So it sounds like the NFC hardware are duo-purposed -- it can be disabled, enable-to-card-emulation-mode, or enable-to-p2p-mode. I agree it can be complex if we want to put all the states in one |setFooEnabled(enum)| -- therefore in this example I don't think we should, nor we most. You can always keep the switch 2-state and introduce another 2-state switch to switch between two enable-* states. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
