diff --git a/tests/ceftests/test_handler.cc b/tests/ceftests/test_handler.cc index ac8ee1251..547f66d45 100644 --- a/tests/ceftests/test_handler.cc +++ b/tests/ceftests/test_handler.cc @@ -320,7 +320,8 @@ void TestHandler::OnCreated(int browser_id, bool views_hosted) { CHECK(use_views_ || !views_hosted); - const bool has_value = browser_status_map_.contains(browser_id); + const bool has_value = + browser_status_map_.find(browser_id) != browser_status_map_.end(); auto& browser_status = browser_status_map_[browser_id]; if (has_value) {