You can apply either way, it's up to you. If she's in Canada, then you should use your address in Canada for either process.
Note that the visa does not allow her to stay inside Canada 10 years, the visa is just the travel document that allows her to board an airplane to Canada. It's up to CBSA upon entry how long she is allowed to stay. If they stamped her passport that will have a visitor status expiry date. Or if no stamp, then she will have 6 months visitors status upon entry, so be careful she doesn't go out of status while here. May need to apply to extend her status, when the 6 months is almost up.