Skip to content
Commit 5baa7fd0 authored by Tsuyoshi Horo's avatar Tsuyoshi Horo Committed by Chromium LUCI CQ
Browse files

Update last_used_time when the dictionary is used

This CL introduces UpdateDictionaryLastUsedTime method in
SQLitePersistentSharedDictionaryStore. The update operation is stored
in Backend::pending_last_used_time_updates_, and committed every 30
seconds or when called 100 times.

SharedDictionaryStorageOnDisk::GetDictionary() method calls this method
via SharedDictionaryManagerOnDisk to update the last_used_time in the
database.

Bug: 1413922
Change-Id: I824c175869fed48757eda587131b27cfdada3e20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4553982


Reviewed-by: default avatarPatrick Meenan <pmeenan@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1148285}
parent 446fe352
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment