Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2286)

Unified Diff: sync/internal_api/base_node.cc

Issue 11734009: sync: Add ControlPreference protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix integration tests Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/base_node.cc
diff --git a/sync/internal_api/base_node.cc b/sync/internal_api/base_node.cc
index f640532bdd95a1563d322bde69eaef626af8a6b1..559fdb46071cdf815cab1ddb8823c117be80b3cb 100644
--- a/sync/internal_api/base_node.cc
+++ b/sync/internal_api/base_node.cc
@@ -343,6 +343,12 @@ const sync_pb::ExperimentsSpecifics& BaseNode::GetExperimentsSpecifics() const {
return GetEntitySpecifics().experiments();
}
+const sync_pb::ControlPreferenceSpecifics&
+ BaseNode::GetControlPreferenceSpecifics() const {
+ DCHECK_EQ(GetModelType(), CONTROL_PREFERENCES);
+ return GetEntitySpecifics().control_preference();
+}
+
const sync_pb::EntitySpecifics& BaseNode::GetEntitySpecifics() const {
return GetUnencryptedSpecifics(GetEntry());
}

Powered by Google App Engine
This is Rietveld 408576698