summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/write_node.cc
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-10 19:47:42 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-10 19:47:42 +0000
commit76e06bfa4c369635604468aa81e6e1594a79abf0 (patch)
treea001bd1f2b75b51587f384d5d86347d0f4b29460 /sync/internal_api/write_node.cc
parenta11e160f0ed1cdf1bd3b7bf658449109717a440b (diff)
downloadchromium_src-76e06bfa4c369635604468aa81e6e1594a79abf0.zip
chromium_src-76e06bfa4c369635604468aa81e6e1594a79abf0.tar.gz
chromium_src-76e06bfa4c369635604468aa81e6e1594a79abf0.tar.bz2
[Sync] Add password support to sync api
This change modifies the password protobuf definition and the sync generic change processor in order to support passwords custom encryption scheme. BUG=117445 Review URL: https://chromiumcodereview.appspot.com/18551007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/write_node.cc')
-rw-r--r--sync/internal_api/write_node.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index 44a2a50..17a7fdb 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -225,6 +225,7 @@ void WriteNode::SetEntitySpecifics(
const sync_pb::EntitySpecifics& new_value) {
ModelType new_specifics_type =
GetModelTypeFromSpecifics(new_value);
+ CHECK(!new_value.password().has_client_only_encrypted_data());
DCHECK_NE(new_specifics_type, UNSPECIFIED);
DVLOG(1) << "Writing entity specifics of type "
<< ModelTypeToString(new_specifics_type);