Commit a54ad588 authored by Alex Turner's avatar Alex Turner Committed by Chromium LUCI CQ

FontMatchingMetrics::InsertFontHashIntoMap should take a ref to the map

Currently, it creates a copy of the map, which means no metrics should be recorded.

Change-Id: I8d00d464e448fa364cfd47dd8657b3c4f650fff1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2590384
Auto-Submit: Alex Turner <alexmt@chromium.org>
Reviewed-by: default avatarPaul Jensen <pauljensen@chromium.org>
Reviewed-by: default avatarDominik Röttsches <drott@chromium.org>
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837118}
parent 56d14ed0
......@@ -114,7 +114,7 @@ void FontMatchingMetrics::ReportLocalFontExistenceByUniqueNameOnly(
void FontMatchingMetrics::InsertFontHashIntoMap(IdentifiableTokenKey input_key,
SimpleFontData* font_data,
TokenToTokenHashMap hash_map) {
TokenToTokenHashMap& hash_map) {
DCHECK(IdentifiabilityStudySettings::Get()->IsActive());
if (hash_map.Contains(input_key))
return;
......
......@@ -198,7 +198,7 @@ class PLATFORM_EXPORT FontMatchingMetrics {
// name in |font_load_postscript_name_|.
void InsertFontHashIntoMap(IdentifiableTokenKey input_key,
SimpleFontData* font_data,
TokenToTokenHashMap hash_map);
TokenToTokenHashMap& hash_map);
// Reports a local font's existence was looked up by a name, but its actual
// font data may or may not have been loaded. This only includes lookups where
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment