GNOME Bugzilla – Bug 754508
[review] refactor agent-manager and asynchronous functions [th/secret-requests-bgo754508]
Last modified: 2015-09-18 12:33:12 UTC
For lr/applied-connection-bgo724041 (bug 724041), we will have to extend requesting secrets to handle a combination of applied-connection and settings-connection. While looking into that, I had problems understanding NMAgentManager, so here is a refactoring of that class. I also move parts from lr/applied-connection-bgo724041 onto this branch. Especially, I also refactor the handling of cancelling asynchronous functions. I really think the proper pattern for many use-cases is to always invoke the callback -- even for cancellation. Please review
LGTM (Tested for two days; no issues noted).
LGTM; we should double-check that secrets requests for PPPoE and WWAN still work though, just to make sure.
(In reply to Dan Williams from comment #2) > LGTM; we should double-check that secrets requests for PPPoE and WWAN still > work though, just to make sure. I have some problems with testing this due to missing test setup. From code review it seems that the change probably doesn't cause any issue. I'd go ahead and merge it. I'd like to run our RH internal tests, but master fails there currently already. So, I'd rather merge this first, and fix the tests (or any fallout) later.
merged to upstream master as http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=6c989bb68f3d182ec6e97e66c2f3faa25a0429b0