diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-09 20:28:46 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-09 20:28:46 +0000 |
commit | 9b55ffc6446732df180a70e0898e12103fc6b4b2 (patch) | |
tree | acf2c465c3583089db3864a7232e814c811d13f4 /sync/internal_api/write_node.cc | |
parent | 92e09378ac701637d3057a9d1200c9d7c3b6d04f (diff) | |
download | chromium_src-9b55ffc6446732df180a70e0898e12103fc6b4b2.zip chromium_src-9b55ffc6446732df180a70e0898e12103fc6b4b2.tar.gz chromium_src-9b55ffc6446732df180a70e0898e12103fc6b4b2.tar.bz2 |
sync: Add PriorityPreference protobuf and supporting code.
BUG=168648
Review URL: https://chromiumcodereview.appspot.com/11734009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175874 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 2057c25..5628571 100644 --- a/sync/internal_api/write_node.cc +++ b/sync/internal_api/write_node.cc @@ -198,6 +198,13 @@ void WriteNode::SetExperimentsSpecifics( SetEntitySpecifics(entity_specifics); } +void WriteNode::SetPriorityPreferenceSpecifics( + const sync_pb::PriorityPreferenceSpecifics& new_value) { + sync_pb::EntitySpecifics entity_specifics; + entity_specifics.mutable_priority_preference()->CopyFrom(new_value); + SetEntitySpecifics(entity_specifics); +} + void WriteNode::SetEntitySpecifics( const sync_pb::EntitySpecifics& new_value) { ModelType new_specifics_type = |