If you really want to do the user switching in a browser instead of the OS then delegate account access to the other account, and then log in using the account with the delegated access and you will be able to switch between the two mailboxes using the Google account picker thing at the top right.