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

Unified Diff: net/reporting/reporting_endpoint_manager.cc

Issue 2889193002: Reporting: Add ReportingDelegate to check site permissions (Closed)
Patch Set: rebase, tweak, format Created 3 years, 7 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 | « net/reporting/reporting_endpoint_manager.h ('k') | net/reporting/reporting_header_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « net/reporting/reporting_endpoint_manager.h ('k') | net/reporting/reporting_header_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698