Factor out Chrome-specific functionality, make deactivable