Do not check against child_count() > 0, instead check if node is not empty().
Use TreeNode::empty() accessor function for checking if node has children or if it isn't empty, instead of using child_count(). BUG=None TEST=None R=gbillock@chromium.org Review URL: http://codereview.chromium.org/7775001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98639 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment