Index: ui/accessibility/platform/test_ax_node_wrapper.cc |
diff --git a/ui/accessibility/platform/test_ax_node_wrapper.cc b/ui/accessibility/platform/test_ax_node_wrapper.cc |
index 6f918c29e3631b0fbfd2c1f61e0e4717678a1baf..28cd793796caf71e1b30d7180746553a25dfd297 100644 |
--- a/ui/accessibility/platform/test_ax_node_wrapper.cc |
+++ b/ui/accessibility/platform/test_ax_node_wrapper.cc |
@@ -49,9 +49,7 @@ TestAXTreeDelegate g_ax_tree_delegate; |
// static |
TestAXNodeWrapper* TestAXNodeWrapper::GetOrCreate(AXTree* tree, AXNode* node) { |
- // Just return NULL if |node| is NULL; this makes test code simpler because |
- // now we don't have to null-check AXNode* every time we call GetOrCreate. |
- if (!node) |
+ if (!tree || !node) |
return nullptr; |
tree->SetDelegate(&g_ax_tree_delegate); |