• Home
  • Raw
  • Download

Lines Matching refs:traits

177 bool SlurpExtensionData(const ExtensionSyncTraits& traits,  in SlurpExtensionData()  argument
186 traits.is_valid_and_syncable, extensions_service, in SlurpExtensionData()
190 traits.root_node_tag, traits.extension_specifics_getter, in SlurpExtensionData()
206 const ExtensionSyncTraits& traits, in UpdateServer() argument
214 if (write_node.InitByClientTagLookup(traits.model_type, id)) { in UpdateServer()
215 (*traits.extension_specifics_setter)(specifics, &write_node); in UpdateServer()
218 if (!root.InitByTagLookup(traits.root_node_tag)) { in UpdateServer()
219 LOG(ERROR) << GetRootNodeDoesNotExistError(traits.root_node_tag); in UpdateServer()
223 if (!create_node.InitUniqueByCreation(traits.model_type, root, id)) { in UpdateServer()
227 (*traits.extension_specifics_setter)(specifics, &create_node); in UpdateServer()
240 bool FlushExtensionData(const ExtensionSyncTraits& traits, in FlushExtensionData() argument
246 if (!root.InitByTagLookup(traits.root_node_tag)) { in FlushExtensionData()
247 LOG(ERROR) << GetRootNodeDoesNotExistError(traits.root_node_tag); in FlushExtensionData()
257 if (!UpdateServer(traits, &extension_data, &trans)) { in FlushExtensionData()
271 traits.is_valid_and_syncable); in FlushExtensionData()
276 bool UpdateServerData(const ExtensionSyncTraits& traits, in UpdateServerData() argument
282 if (!traits.is_valid_and_syncable(extension)) { in UpdateServerData()
300 if (node.InitByClientTagLookup(traits.model_type, id)) { in UpdateServerData()
302 (*traits.extension_specifics_getter)(node); in UpdateServerData()
316 if (!UpdateServer(traits, &extension_data, &trans)) { in UpdateServerData()
333 void RemoveServerData(const ExtensionSyncTraits& traits, in RemoveServerData() argument
338 if (write_node.InitByClientTagLookup(traits.model_type, id)) { in RemoveServerData()