| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sync/internal_api/public/write_node.h" | 5 #include "sync/internal_api/public/write_node.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "sync/internal_api/public/base_transaction.h" | 10 #include "sync/internal_api/public/base_transaction.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 SetEntitySpecifics(entity_specifics); | 186 SetEntitySpecifics(entity_specifics); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void WriteNode::SetManagedUserSettingSpecifics( | 189 void WriteNode::SetManagedUserSettingSpecifics( |
| 190 const sync_pb::ManagedUserSettingSpecifics& new_value) { | 190 const sync_pb::ManagedUserSettingSpecifics& new_value) { |
| 191 sync_pb::EntitySpecifics entity_specifics; | 191 sync_pb::EntitySpecifics entity_specifics; |
| 192 entity_specifics.mutable_managed_user_setting()->CopyFrom(new_value); | 192 entity_specifics.mutable_managed_user_setting()->CopyFrom(new_value); |
| 193 SetEntitySpecifics(entity_specifics); | 193 SetEntitySpecifics(entity_specifics); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void WriteNode::SetManagedUserSpecifics( |
| 197 const sync_pb::ManagedUserSpecifics& new_value) { |
| 198 sync_pb::EntitySpecifics entity_specifics; |
| 199 entity_specifics.mutable_managed_user()->CopyFrom(new_value); |
| 200 SetEntitySpecifics(entity_specifics); |
| 201 } |
| 202 |
| 196 void WriteNode::SetDeviceInfoSpecifics( | 203 void WriteNode::SetDeviceInfoSpecifics( |
| 197 const sync_pb::DeviceInfoSpecifics& new_value) { | 204 const sync_pb::DeviceInfoSpecifics& new_value) { |
| 198 sync_pb::EntitySpecifics entity_specifics; | 205 sync_pb::EntitySpecifics entity_specifics; |
| 199 entity_specifics.mutable_device_info()->CopyFrom(new_value); | 206 entity_specifics.mutable_device_info()->CopyFrom(new_value); |
| 200 SetEntitySpecifics(entity_specifics); | 207 SetEntitySpecifics(entity_specifics); |
| 201 } | 208 } |
| 202 | 209 |
| 203 void WriteNode::SetExperimentsSpecifics( | 210 void WriteNode::SetExperimentsSpecifics( |
| 204 const sync_pb::ExperimentsSpecifics& new_value) { | 211 const sync_pb::ExperimentsSpecifics& new_value) { |
| 205 sync_pb::EntitySpecifics entity_specifics; | 212 sync_pb::EntitySpecifics entity_specifics; |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 MarkForSyncing(); | 515 MarkForSyncing(); |
| 509 | 516 |
| 510 return true; | 517 return true; |
| 511 } | 518 } |
| 512 | 519 |
| 513 void WriteNode::MarkForSyncing() { | 520 void WriteNode::MarkForSyncing() { |
| 514 syncable::MarkForSyncing(entry_); | 521 syncable::MarkForSyncing(entry_); |
| 515 } | 522 } |
| 516 | 523 |
| 517 } // namespace syncer | 524 } // namespace syncer |
| OLD | NEW |