Persist histogram data when Chrome is running in the reduced mode.
Recently we noticed that the histogram data is lost when Chrome is
running in the reduced mode and get killed before the full browser
starts. This is because there isn't a SystemProfile set in the
reduced mode. Thus, the previous data in the BrowserMetrics-active.pma
file isn't picked up by Chrome the next time it is launched in the
full browser mode.
In this CL, we write the initial system profile to the mapped memory
file, so Chrome will pick up the data when it restarts in the full
Note: the histogram data is only persistent on the memory mapped file,
but not being uploaded when Chrome is running in the reduced mode.
Reviewed-by: John Abd-El-Malek <firstname.lastname@example.org>
Reviewed-by: Brian White <email@example.com>
Commit-Queue: Xi Han <firstname.lastname@example.org>
5 files changed