Chromium Code Reviews| Index: chrome/browser/sync/engine/syncapi.cc |
| diff --git a/chrome/browser/sync/engine/syncapi.cc b/chrome/browser/sync/engine/syncapi.cc |
| index 5c1ae710511252a66351ea99e9163c3a2e221071..3e52a814b9604b364ee8bbc889baf471bb2b248c 100644 |
| --- a/chrome/browser/sync/engine/syncapi.cc |
| +++ b/chrome/browser/sync/engine/syncapi.cc |
| @@ -382,6 +382,20 @@ void WriteNode::PutAutofillSpecificsAndMarkForSyncing( |
| PutSpecificsAndMarkForSyncing(entity_specifics); |
| } |
| +void WriteNode::SetAutofillProfileSpecifics( |
| + const sync_pb::AutofillProfileSpecifics& new_value) { |
| + DCHECK_EQ(GetModelType(), syncable::AUTOFILL_PROFILE); |
| + PutAutofillProfileSpecificsAndMarkForSyncing(new_value); |
| +} |
| + |
| +void WriteNode::PutAutofillProfileSpecificsAndMarkForSyncing( |
| + const sync_pb::AutofillProfileSpecifics& new_value) { |
| + sync_pb::EntitySpecifics entity_specifics; |
| + entity_specifics.MutableExtension(sync_pb::autofill_profile)->CopyFrom( |
| + new_value); |
| + PutSpecificsAndMarkForSyncing(entity_specifics); |
| +} |
| + |
| void WriteNode::SetBookmarkSpecifics( |
| const sync_pb::BookmarkSpecifics& new_value) { |
| DCHECK(GetModelType() == syncable::BOOKMARKS); |
| @@ -2177,7 +2191,7 @@ void SyncManager::SyncInternal::OnIncomingNotification( |
| if (!syncable::ModelTypeBitSetFromString( |
| notification_data.service_specific_data, |
| &model_types)) { |
|
lipalani
2010/12/08 21:37:46
this needs to go back.
|
| - LOG(DFATAL) << "Could not extract model types from server data."; |
| + // LOG(DFATAL) << "Could not extract model types from server data."; |
| model_types.set(); |
| } |
| } else if (notification_data.service_url.empty() || |