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

Side by Side Diff: sync/internal_api/write_node.cc

Issue 15177003: Add Sync data type for managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/public/write_node.h ('k') | sync/protocol/managed_user_specifics.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/public/write_node.h ('k') | sync/protocol/managed_user_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698