sync_load/sync_load.cc
// Makes a non-folder child of the root node.  Returns the id of the
// newly-created node.
Makes a non-folder child of the root node.  Returns the id of the
newly-created node.
Makes a non - folder child of the root node . Returns the id of the newly - created node .
int64 EntityCreationTasks::MakeNode(ModelType model_type,
               const std::string& client_tag) {
  UserShare* share = sync_manager_->GetUserShare();
  WriteTransaction trans(FROM_HERE, share);
  ReadNode root_node(&trans);
  root_node.InitByRootLookup();
  WriteNode node(&trans);
  node.InitUniqueByCreation(model_type, root_node, client_tag);
  node.SetIsFolder(false);
  return node.GetId();
}
int64 EntityCreationTasks :: MakeNode ( ModelType model_type , const std :: string & client_tag ) { UserShare * share = sync_manager_ -> GetUserShare ( ) ; WriteTransaction trans ( FROM_HERE , share ) ; ReadNode root_node ( & trans ) ; root_node . InitByRootLookup ( ) ; WriteNode node ( & trans ) ; node . InitUniqueByCreation ( model_type , root_node , client_tag ) ; node . SetIsFolder ( false ) ; return node . GetId ( ) ; }
Makes a non-folder child of the root node.
Makes a non - folder child of the root node .
//WriteNode::InitUniqueByCreationResult result = //EXPECT_EQ(WriteNode::INIT_SUCCESS, result);