Index: net/reporting/reporting_endpoint_manager.cc |
diff --git a/net/reporting/reporting_endpoint_manager.cc b/net/reporting/reporting_endpoint_manager.cc |
index 3d533dafbdf0f488e86e5f04e885c076d1ae680f..f1fde5933eb8147af581a7bbcd4df4b0c97985b5 100644 |
--- a/net/reporting/reporting_endpoint_manager.cc |
+++ b/net/reporting/reporting_endpoint_manager.cc |
@@ -15,6 +15,7 @@ |
#include "net/base/backoff_entry.h" |
#include "net/reporting/reporting_cache.h" |
#include "net/reporting/reporting_client.h" |
+#include "net/reporting/reporting_delegate.h" |
#include "net/reporting/reporting_policy.h" |
#include "url/gurl.h" |
#include "url/origin.h" |
@@ -45,6 +46,8 @@ bool ReportingEndpointManager::FindEndpointForOriginAndGroup( |
endpoint_backoff_[client->endpoint]->ShouldRejectRequest()) { |
continue; |
} |
+ if (!delegate()->CanUseClient(client->origin, client->endpoint)) |
+ continue; |
available_clients.push_back(client); |
} |