function resetUserAgent() {
  util.setUserAgent(null);
  util.resetUserAgentData();
  platformVersion.resetForTesting();
  browserResetForTesting();
}
If the user agent string or user agent data object was overridden using
setUserAgent, reset it so that native browser values are used instead.