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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 SetEntitySpecifics(entity_specifics); | 179 SetEntitySpecifics(entity_specifics); |
180 } | 180 } |
181 | 181 |
182 void WriteNode::SetSessionSpecifics( | 182 void WriteNode::SetSessionSpecifics( |
183 const sync_pb::SessionSpecifics& new_value) { | 183 const sync_pb::SessionSpecifics& new_value) { |
184 sync_pb::EntitySpecifics entity_specifics; | 184 sync_pb::EntitySpecifics entity_specifics; |
185 entity_specifics.mutable_session()->CopyFrom(new_value); | 185 entity_specifics.mutable_session()->CopyFrom(new_value); |
186 SetEntitySpecifics(entity_specifics); | 186 SetEntitySpecifics(entity_specifics); |
187 } | 187 } |
188 | 188 |
| 189 void WriteNode::SetManagedUserSettingSpecifics( |
| 190 const sync_pb::ManagedUserSettingSpecifics& new_value) { |
| 191 sync_pb::EntitySpecifics entity_specifics; |
| 192 entity_specifics.mutable_managed_user_setting()->CopyFrom(new_value); |
| 193 SetEntitySpecifics(entity_specifics); |
| 194 } |
| 195 |
189 void WriteNode::SetDeviceInfoSpecifics( | 196 void WriteNode::SetDeviceInfoSpecifics( |
190 const sync_pb::DeviceInfoSpecifics& new_value) { | 197 const sync_pb::DeviceInfoSpecifics& new_value) { |
191 sync_pb::EntitySpecifics entity_specifics; | 198 sync_pb::EntitySpecifics entity_specifics; |
192 entity_specifics.mutable_device_info()->CopyFrom(new_value); | 199 entity_specifics.mutable_device_info()->CopyFrom(new_value); |
193 SetEntitySpecifics(entity_specifics); | 200 SetEntitySpecifics(entity_specifics); |
194 } | 201 } |
195 | 202 |
196 void WriteNode::SetExperimentsSpecifics( | 203 void WriteNode::SetExperimentsSpecifics( |
197 const sync_pb::ExperimentsSpecifics& new_value) { | 204 const sync_pb::ExperimentsSpecifics& new_value) { |
198 sync_pb::EntitySpecifics entity_specifics; | 205 sync_pb::EntitySpecifics entity_specifics; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 MarkForSyncing(); | 508 MarkForSyncing(); |
502 | 509 |
503 return true; | 510 return true; |
504 } | 511 } |
505 | 512 |
506 void WriteNode::MarkForSyncing() { | 513 void WriteNode::MarkForSyncing() { |
507 syncable::MarkForSyncing(entry_); | 514 syncable::MarkForSyncing(entry_); |
508 } | 515 } |
509 | 516 |
510 } // namespace syncer | 517 } // namespace syncer |
OLD | NEW |