I couldn't find any sample code for signing into Dropbox from within a Chrome Extension - hopefully this code will help other people!