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

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

Issue 76333002: Add Sync datatype for shared managed user settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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
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/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 SetEntitySpecifics(entity_specifics); 193 SetEntitySpecifics(entity_specifics);
194 } 194 }
195 195
196 void WriteNode::SetManagedUserSpecifics( 196 void WriteNode::SetManagedUserSpecifics(
197 const sync_pb::ManagedUserSpecifics& new_value) { 197 const sync_pb::ManagedUserSpecifics& new_value) {
198 sync_pb::EntitySpecifics entity_specifics; 198 sync_pb::EntitySpecifics entity_specifics;
199 entity_specifics.mutable_managed_user()->CopyFrom(new_value); 199 entity_specifics.mutable_managed_user()->CopyFrom(new_value);
200 SetEntitySpecifics(entity_specifics); 200 SetEntitySpecifics(entity_specifics);
201 } 201 }
202 202
203 void WriteNode::SetManagedUserSharedSettingSpecifics(
204 const sync_pb::ManagedUserSharedSettingSpecifics& new_value) {
205 sync_pb::EntitySpecifics entity_specifics;
206 entity_specifics.mutable_managed_user_shared_setting()->CopyFrom(new_value);
207 SetEntitySpecifics(entity_specifics);
208 }
209
203 void WriteNode::SetDeviceInfoSpecifics( 210 void WriteNode::SetDeviceInfoSpecifics(
204 const sync_pb::DeviceInfoSpecifics& new_value) { 211 const sync_pb::DeviceInfoSpecifics& new_value) {
205 sync_pb::EntitySpecifics entity_specifics; 212 sync_pb::EntitySpecifics entity_specifics;
206 entity_specifics.mutable_device_info()->CopyFrom(new_value); 213 entity_specifics.mutable_device_info()->CopyFrom(new_value);
207 SetEntitySpecifics(entity_specifics); 214 SetEntitySpecifics(entity_specifics);
208 } 215 }
209 216
210 void WriteNode::SetExperimentsSpecifics( 217 void WriteNode::SetExperimentsSpecifics(
211 const sync_pb::ExperimentsSpecifics& new_value) { 218 const sync_pb::ExperimentsSpecifics& new_value) {
212 sync_pb::EntitySpecifics entity_specifics; 219 sync_pb::EntitySpecifics entity_specifics;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 MarkForSyncing(); 520 MarkForSyncing();
514 521
515 return true; 522 return true;
516 } 523 }
517 524
518 void WriteNode::MarkForSyncing() { 525 void WriteNode::MarkForSyncing() {
519 syncable::MarkForSyncing(entry_); 526 syncable::MarkForSyncing(entry_);
520 } 527 }
521 528
522 } // namespace syncer 529 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698