If a fetch was unsuccessful, OnURLFetchComplete should check if it was unable to reach the server and it was using an HTTPS URL to reach it, if so, it should encrypt the report, then try sending it over an HTTP connection.
Summary: Modify ReportingService so it schedules a retry over HTTP on failure (was: Modify NetMetricsLogUploader::OnURLFetchComplete so it retries over HTTP on failure)
New approach is to do this in ReportingService. OnURLFetchComplete should pass a boolean to OnUploadComplete specifying whether the current attempt was over HTTP or HTTPS, if the latter, ReportingService should schedule a retry over HTTP for the next attempt.
Comment 1 by carlosil@chromium.org
, Sep 27 2017