Chrome client..I know it's quite fragile but couldn't find any better way to do this.