chrome.runtime -> chrome.extension when needed

This patch extends the browser support from Chromium 26+ to Chromium 20+.