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

Issue 7775001: Do not check against child_count() > 0, instead check if node is not empty(). (Closed)

Created:
9 years, 3 months ago by tfarina
Modified:
9 years, 3 months ago
Reviewers:
Greg Billock
CC:
chromium-reviews
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98639

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/ui/intents/intents_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/intents_settings_handler.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
tfarina
9 years, 3 months ago (2011-08-27 03:34:21 UTC) #1
Greg Billock
9 years, 3 months ago (2011-08-29 15:15:50 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698