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

Unified Diff: chrome/browser/ui/intents/intents_model.cc

Issue 7775001: Do not check against child_count() > 0, instead check if node is not empty(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/intents_settings_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/intents/intents_model.cc
diff --git a/chrome/browser/ui/intents/intents_model.cc b/chrome/browser/ui/intents/intents_model.cc
index 919dbe36cc7a2ac34a477d7b1af8df480866efc3..4aa09112f47be05450f76aa9a024f3a0370523c3 100644
--- a/chrome/browser/ui/intents/intents_model.cc
+++ b/chrome/browser/ui/intents/intents_model.cc
@@ -95,7 +95,7 @@ void IntentsModel::GetIntentsTreeNodeDictionary(const IntentsTreeNode& node,
if (node.Type() == IntentsTreeNode::TYPE_ORIGIN) {
dict->SetString("site", node.GetTitle());
- dict->SetBoolean("hasChildren", node.child_count() > 0);
+ dict->SetBoolean("hasChildren", !node.empty());
return;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/intents_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698