commit | 03974c64eb3b99c109d94e319a3b54d350b51fec | [log] [tgz] |
---|---|---|
author | Devlin Cronin <rdevlin.cronin@chromium.org> | Thu Jul 25 15:58:09 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 25 15:58:09 2019 |
tree | 26b216648ccdcebe59c72e1c4524b8b6d0ce35bf | |
parent | 66da9a59115dc7d10fffbc28e7d431e56af2af65 [diff] |
[Extensions] Clean up old ExtensionPref entries. ExtensionPrefs contains a dictionary for each installed extension, keyed by ID. Each of these dictionaries as extension-specific preferences (corresponding to the state of that extension). Some of these have been made obsolete over the years, but not cleaned up. Introduce a method, ExtensionPrefs::CleanUpObsoletePrefs(), which iterates over each extension dictionary and removes known obsolete prefs. We need to do this specially in ExtensionPrefs (rather than in MigrateObsoleteBrowserPrefs() or MigrateObsoleteProfilePrefs()) because the obsolete prefs are sub-keys of the extension dictionary. This means that we can't just remove the key from the global Preferences object, because the full path of the key isn't known (since it is basaed on the extension's ID). Add a unittest for the same. Bug: 843344 Change-Id: I87c0b220e0df9f7413f3cd9f107767a61e4b024a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1684514 Reviewed-by: Gabriel Charette <gab@chromium.org> Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org> Reviewed-by: Mihai Sardarescu <msarda@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#680859}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .