Pull code for formatting the X-Client-Data header from Chromium/upstream

This is the devtools side of https://chromium-review.googlesource.com/c/chromium/src/+/2360517

R=mathias

Bug: chromium:1103854
Change-Id: I5ec32a4e84a0f873ec5372579728a94f47a83463
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2361093
Reviewed-by: Mathias Bynens <[email protected]>
Commit-Queue: Mathias Bynens <[email protected]>
Auto-Submit: Ilya Sherman <[email protected]>
diff --git a/front_end/network/RequestHeadersView.js b/front_end/network/RequestHeadersView.js
index ab6c224..edf55a9 100644
--- a/front_end/network/RequestHeadersView.js
+++ b/front_end/network/RequestHeadersView.js
@@ -787,8 +787,8 @@
       headersTreeElement.appendChild(headerTreeElement);
 
       if (headerId === 'x-client-data') {
-        const data = ClientVariations.Parser.parseClientVariations(header.value);
-        const output = ClientVariations.Formatter.formatClientVariations(
+        const data = ClientVariations.parseClientVariations(header.value);
+        const output = ClientVariations.formatClientVariations(
             data, ls`Active client experiment variation IDs.`,
             ls`Active client experiment variation IDs that trigger server-side behavior.`);
         const wrapper = createElement('div');