diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 00:53:09 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 00:53:09 +0000 |
commit | 2607e0189caf80c28f335eb329646672baa8fa4d (patch) | |
tree | 2be22c61740ea8fd8e552e575b1fb8b7a00235c8 /sync/internal_api/write_node.cc | |
parent | 0e066ac18a30f4efe873a664d99a2e2f35afdeb5 (diff) | |
download | chromium_src-2607e0189caf80c28f335eb329646672baa8fa4d.zip chromium_src-2607e0189caf80c28f335eb329646672baa8fa4d.tar.gz chromium_src-2607e0189caf80c28f335eb329646672baa8fa4d.tar.bz2 |
Initial support for the 'Experiments' data type
This internal sync type will track flags that enable or disable experimental
features.
This commit includes the protobuf definitions and other infrastructure required
to support the type. It also includes some support for one experimental flag
that will be used to enable or disable encryption. The code to actually
inspect the flag and take action on its value will be included in a later
commit.
The type is not actually enabled in this patch because the server does not yet
support it. Once server support is available, a small follow-up commit will be
required to enable the feature.
BUG=122825
Review URL: https://chromiumcodereview.appspot.com/11144024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/write_node.cc')
-rw-r--r-- | sync/internal_api/write_node.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc index fad906c..5ffa795 100644 --- a/sync/internal_api/write_node.cc +++ b/sync/internal_api/write_node.cc @@ -196,6 +196,13 @@ void WriteNode::SetDeviceInfoSpecifics( SetEntitySpecifics(entity_specifics); } +void WriteNode::SetExperimentsSpecifics( + const sync_pb::ExperimentsSpecifics& new_value) { + sync_pb::EntitySpecifics entity_specifics; + entity_specifics.mutable_experiments()->CopyFrom(new_value); + SetEntitySpecifics(entity_specifics); +} + void WriteNode::SetEntitySpecifics( const sync_pb::EntitySpecifics& new_value) { ModelType new_specifics_type = |