FWIW, I have tested the code using chrome.proxy.settings in a more recent version of NWjs (0.90.0) and it seems to work as expected.
chrome.proxy.settings