diff options
author | Andrew <andrewlassalle@chromium.org> | 2020-04-07 15:43:07 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-05 21:05:43 +0000 |
commit | 065d78d6963ca13a38ad305bf751b09ec929cf51 (patch) | |
tree | 1f526b5f8e363bf08e9abfe43f48b508006a0815 /common/prefs_interface.h | |
parent | ebea33916754d5522ce6489a910b990b119b7174 (diff) |
update_engine: Change DLC metadata path
Change the location of the DLC metadata from /var/lib/dlc to
/var/lib/update_engine/dlc_prefs/ to make update_engine the owner of
metadata.
BUG=chromium:912666
TEST=cros_workon_make update_engine --test
TEST=install and uninstall DLCs on DUT. Check new prefs path.
Change-Id: I75f5506eee1abc834ad89a7cf363f42e384b695b
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2140007
Tested-by: Andrew Lassalle <andrewlassalle@chromium.org>
Commit-Queue: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Jae Hoon Kim <kimjae@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'common/prefs_interface.h')
-rw-r--r-- | common/prefs_interface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/prefs_interface.h b/common/prefs_interface.h index 03ae3ecd..b5596974 100644 --- a/common/prefs_interface.h +++ b/common/prefs_interface.h @@ -79,6 +79,11 @@ class PrefsInterface { // this key. Calling with non-existent keys does nothing. virtual bool Delete(const std::string& key) = 0; + // Creates a key which is part of a sub preference. + static std::string CreateSubKey(const std::string& name_space, + const std::string& sub_pref, + const std::string& key); + // Add an observer to watch whenever the given |key| is modified. The // OnPrefSet() and OnPrefDelete() methods will be called whenever any of the // Set*() methods or the Delete() method are called on the given key, |