Index: chrome/browser/ui/webui/options/intents_settings_handler.cc |
diff --git a/chrome/browser/ui/webui/options/intents_settings_handler.cc b/chrome/browser/ui/webui/options/intents_settings_handler.cc |
index 42f4868ee144312dd2b68769646f96ada45b2400..2656e72b2c8195a45dc7abae87c1363ba721f865 100644 |
--- a/chrome/browser/ui/webui/options/intents_settings_handler.cc |
+++ b/chrome/browser/ui/webui/options/intents_settings_handler.cc |
@@ -103,7 +103,7 @@ void IntentsSettingsHandler::RemoveIntent(const base::ListValue* args) { |
void IntentsSettingsHandler::RemoveOrigin(IntentsTreeNode* node) { |
// TODO(gbillock): This is a known batch update. Worth optimizing? |
- while (node->child_count() > 0) { |
+ while (!node->empty()) { |
IntentsTreeNode* cnode = node->GetChild(0); |
CHECK(cnode->Type() == IntentsTreeNode::TYPE_SERVICE); |
ServiceTreeNode* snode = static_cast<ServiceTreeNode*>(cnode); |