moved some chromium-specific code into chromium.js

(using extension.navigator namespace this time)