Support grandfathered prefixes in ChromePreferenceKeys.
Some SharedPreferences keys used in the past are dynamic. For example, in PaymentPreferencesUtil, keys of the format "payment_instrument_use_count_[type]" are generated. These keys should be usable by SharedPreferencesManager, which will only allow whitelisted keys to be used. This CL creates a whitelist of dynamic key prefixes grandfathered in because they do not follow the format "Chrome.[Feature].[KeyPrefix].*". Bug: 1022108 Change-Id: Iaf9ebf170c339cc4b6d13705d515c97eef9087cd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1981262 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by:Natalie Chouinard <chouinard@chromium.org> Cr-Commit-Position: refs/heads/master@{#729864}
Showing
Please register or sign in to comment