I can just add, yes, it happens that you have on-line check-in and still got the upgrade.
So the chances are higher then 0, but no idea if it increases or decreases probability....
Anyway, if you do online check-in you are able to use "on-line checked" counter at the airport, usually it helps to avoid the queue.