chrome/browser/bookmarks/bookmark_utils.cc
// Returns the total number of descendants nodes.
Returns the total number of descendants nodes.
Returns the total number of descendants nodes .
int ChildURLCountTotal(const BookmarkNode* node) {
  int result = 0;
  for (int i = 0; i < node->child_count(); ++i) {
    const BookmarkNode* child = node->GetChild(i);
    result++;
    if (child->is_folder())
      result += ChildURLCountTotal(child);
  }
  return result;
}
int ChildURLCountTotal ( const BookmarkNode * node ) { int result = 0 ; for ( int i = 0 ; i < node -> child_count ( ) ; ++ i ) { const BookmarkNode * child = node -> GetChild ( i ) ; result ++ ; if ( child -> is_folder ( ) ) result += ChildURLCountTotal ( child ) ; } return result ; }
Returns the total number of descendants nodes.
Returns the total number of descendants nodes .