This is a reland of https://crrev.com/c/6415568, focusing only UMA for
CreateStream() to make a reland CL smaller and isolated.
The original CL causes a crash (https://crbug.com/408060617). The
underlying cause was that `create_stream_end_time_` was not cleared,
even though CreatStream() could be called multiple times. That may cause
a crash in populating LoadTimingInternalInfo later, hitting at:
CHECK_LE(create_stream_start_time_, create_stream_end_time_);
See also: https://crrev.com/c/6424639.
This CL makes sure to reset `end_time` when setting `start_time` to
prevent an inconsistent state.
Note this is a kind of speculative fix because I couldn't reproduce a
crash locally.
Bug: 393980912,408060617
Change-Id: I8eaf20c866f8239240c40e936bc4594e2979def1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6433371
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1443851}