hydrate(snapshot: ISerializedBrowserFaviconsSnapshot | undefined): void {
if (snapshot?.map && typeof snapshot.map === 'object') {
for (const [k, v] of Object.entries(snapshot.map)) {
if (typeof v === 'string') {
this._byHash.set(k, v);
}
}
}
this._onDidChange.fire();
}
}