summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorygorshenin <ygorshenin@chromium.org>2014-12-25 10:37:11 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-25 18:38:03 +0000
commit84b2ec0c6bd936ae14347ee5e640af611a034832 (patch)
treece95b1ce7fd75f8a4870deaadc3346e83632d61a /components
parentad1f618343c42271c5efd5b95ee5aad895a904a9 (diff)
downloadchromium_src-84b2ec0c6bd936ae14347ee5e640af611a034832.zip
chromium_src-84b2ec0c6bd936ae14347ee5e640af611a034832.tar.gz
chromium_src-84b2ec0c6bd936ae14347ee5e640af611a034832.tar.bz2
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}
Diffstat (limited to 'components')
-rw-r--r--components/ownership/owner_settings_service.h9
1 files changed, 9 insertions, 0 deletions
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.
//