message: Replace all infinity values before uploading to the dashoard
  No-Presubmit: True
  Cr-Commit-Position: refs/heads/master@{#32685}
diff: @@ -172,9 +172,6 @@ def _CheckFullUploadInfo(url, upload_token,
  # TODO(https://crbug.com/1029452): HACKHACK
  # Remove once we have doubles in the proto and handle -infinity correctly.
  def _ApplyHacks(dicts):
  - for d in dicts:
  - if 'running' in d:
  -
  def _NoInf(value):
  if value == float('inf'):
  return histogram.JS_MAX_VALUE
  @@ -182,7 +179,11 @@ def _ApplyHacks(dicts):
  return -histogram.JS_MAX_VALUE
  return value
  + for d in dicts:
  + if 'running' in d:
  d['running'] = [_NoInf(value) for value in d['running']]
  + if 'sampleValues' in d:
  + d['sampleValues'] = [_NoInf(value) for value in d['sampleValues']]
  return dicts
  