DescriptionFail when saving page as MHTML provides information about the cause.
This change adds more detailed information to tracing and UMA histograms about
the reason why a MHTML save operation has failed. This will help us understand
why some specific pages consistently fail and better handle these situations.
It introduces a new enum, MhtmlSaveStatus, that lists all tracked causes. Part
of the reasons are tracked by the browser and the others by the render process
but the reporting is centralized in the former. A few tests from
MHTMLGenerationTest were also changed to verify the MHTML failures they test for
are correctly reported.
BUG=645686, 655723, 655708
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/29da4fe0a2b453e474e6cd530332a2ed02f70576
Cr-Commit-Position: refs/heads/master@{#434783}
Patch Set 1 #Patch Set 2 : Minor changes. #
Total comments: 10
Patch Set 3 : Rebase (but I only realized later the build errors are not due to patching) #Patch Set 4 : Addressed code review comments. #
Total comments: 8
Patch Set 5 : Addressed code review comments. #Patch Set 6 : Updated how the last enum value is represented. #
Total comments: 2
Patch Set 7 : Fixed typo. #Dependent Patchsets: Messages
Total messages: 38 (22 generated)
|