Skip to content

Commit

Permalink
P3A: Stop sending old protobuf format message.
Browse files Browse the repository at this point in the history
With the completion callback issue addressed, skip submission
to the old P3A endpoint. P2A message continue until we've
confirmed adequite numbers on the json endpoint.

Restores brave/brave-browser#23147
  • Loading branch information
rillian committed Jun 29, 2022
1 parent 469d7e3 commit f88115b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/p3a/brave_p3a_uploader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ void BraveP3AUploader::UploadLog(const std::string& compressed_log_data,
} else if (upload_type == "p3a") {
resource_request->url = p3a_endpoint_;
resource_request->headers.SetHeader("X-Brave-P3A", "?1");
// Don't actually send the older format.
return;
} else {
NOTREACHED();
}
Expand Down

0 comments on commit f88115b

Please sign in to comment.