Chromium Code Reviews
DescriptionPolish the result communication and display of the browsing data counters.
So far, counters only supported a single int as a result. This was already insufficient, as the history counter needs to return a <int, bool> pair, which had to be encoded into a single int. For the upcoming autofill counter, which returns 3 ints, this would be even worse.
This CL restructures how the result is reported and interpreted. Counters now return a Result class with raw data instead of an int. The interpretation of that class is now the responsibility of the frontend.
Strings on the frontend are crafted according to https://folio.googleplex.com/clear-browsing-data/Data%20counters/V1 .
BUG=510028
Committed: https://crrev.com/6bb4dffab7e267d535162a2b17869db4b8662881
Cr-Commit-Position: refs/heads/master@{#357558}
Patch Set 1 : #
Total comments: 14
Patch Set 2 : Addressed comments. #Patch Set 3 : Addressed comments. #
Total comments: 12
Patch Set 4 : Fix compilation. #Patch Set 5 : Fixes. #
Total comments: 6
Patch Set 6 : Removed NOTREACHED. #Patch Set 7 : Moved Value() to FinishedResult. #
Total comments: 7
Patch Set 8 : Nits. #Messages
Total messages: 30 (12 generated)
|