Update code for setting user agent in Chrome