Fixed oauth provider to check for chrome.permissions