Fix some typos and add some missing commas.
Change-Id: Ic94a39075beb4fe921f7722c0360e2c00c9bad6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4685292
Commit-Queue: Caitlin Fischer <[email protected]>
Reviewed-by: Jesse Doherty <[email protected]>
Auto-Submit: Caitlin Fischer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1172921}
diff --git a/components/metrics/metrics_log_uploader.h b/components/metrics/metrics_log_uploader.h
index e4edf7b..9852c08b 100644
--- a/components/metrics/metrics_log_uploader.h
+++ b/components/metrics/metrics_log_uploader.h
@@ -18,7 +18,7 @@
// of MetricsService.
class MetricsLogUploader {
public:
- // Type for OnUploadComplete callbacks. These callbacks will receive five
+ // Type for OnUploadComplete callbacks. These callbacks receive five
// parameters:
// - a response code,
// - a net error code,
@@ -44,13 +44,14 @@
// Uploads a log with the specified |compressed_log_data|, a |log_hash| and
// |log_signature| for data validation, and |reporting_info|. |log_hash| is
- // expected to be the hex-encoded SHA1 hash of the log data before compression
- // and |log_signature| is expected to be a base64-encoded HMAC-SHA256
- // signature of the log data before compression. When the server receives an
- // upload it recomputes the hash and signature of the upload and compares it
- // to the ones inlcuded in the upload. If there is a missmatched, the upload
- // is flagged. If an Uploader implementation uploads to a server that doesn't
- // do this validation then |log_hash| and |log_signature| can be ignored.
+ // expected to be the hex-encoded SHA1 hash of the log data before
+ // compression, and |log_signature| is expected to be a base64-encoded
+ // HMAC-SHA256 signature of the log data before compression. When the server
+ // receives an upload, it recomputes the hash and signature of the upload and
+ // compares it to the ones included in the upload. If there is a mismatch, the
+ // upload is flagged. If an Uploader implementation uploads to a server that
+ // doesn't do this validation, then |log_hash| and |log_signature| can be
+ // ignored.
virtual void UploadLog(const std::string& compressed_log_data,
const std::string& log_hash,
const std::string& log_signature,