Only attempt migration if in Chrome

Fixes tests.