From 84b2ec0c6bd936ae14347ee5e640af611a034832 Mon Sep 17 00:00:00 2001 From: ygorshenin Date: Thu, 25 Dec 2014 10:37:11 -0800 Subject: AccountsOptionsHandler uses OwnerSettingsService now. BUG=433840 TEST=manual tests on Falco device Review URL: https://codereview.chromium.org/826703002 Cr-Commit-Position: refs/heads/master@{#309646} --- components/ownership/owner_settings_service.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'components/ownership') diff --git a/components/ownership/owner_settings_service.h b/components/ownership/owner_settings_service.h index 9be4a0a..d0438b6 100644 --- a/components/ownership/owner_settings_service.h +++ b/components/ownership/owner_settings_service.h @@ -91,6 +91,15 @@ class OWNERSHIP_EXPORT OwnerSettingsService : public KeyedService { // Sets |setting| value to |value|. virtual bool Set(const std::string& setting, const base::Value& value) = 0; + // Convenience functions for manipulating lists. Note that the following + // functions employs a read, modify and write pattern. If there're + // pending updates to |setting|, value cache they read from might not + // be fresh and multiple calls to those function would lose data. + virtual bool AppendToList(const std::string& setting, + const base::Value& value) = 0; + virtual bool RemoveFromList(const std::string& setting, + const base::Value& value) = 0; + // Sets a bunch of device settings accumulated before ownership gets // established. // -- cgit v1.1