The search giant has agreed to buy 6 Pancras Square, the office it has lived in as sole tenant since 2016