From 1c6346ca7305eff8c3cb4a16539da5951456fc69 Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Thu, 14 Mar 2024 10:02:47 -0400 Subject: [PATCH 1/2] Add manifest.json --- .../samples/devtools-extension/src/manifest.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 protected-audience/samples/devtools-extension/src/manifest.json diff --git a/protected-audience/samples/devtools-extension/src/manifest.json b/protected-audience/samples/devtools-extension/src/manifest.json new file mode 100644 index 0000000..2353e65 --- /dev/null +++ b/protected-audience/samples/devtools-extension/src/manifest.json @@ -0,0 +1,12 @@ +{ + "name": "Devtools - Protected Audience debugger extension demo", + "description": "Summarizes Protected Audience debugging events.", + "version": "1.0", + "manifest_version": 3, + "minimum_chrome_version": "123.0.6274.0", + "devtools_page": "devtools.html", + "permissions": ["debugger"], + "background": { + "service_worker": "service-worker.js" + } +} \ No newline at end of file From 248c32efa277a983e2f298cf1a9ed561f8dd1346 Mon Sep 17 00:00:00 2001 From: Kevin Lee Date: Thu, 14 Mar 2024 10:05:53 -0400 Subject: [PATCH 2/2] Update instructions --- protected-audience/samples/devtools-extension/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/protected-audience/samples/devtools-extension/index.md b/protected-audience/samples/devtools-extension/index.md index adfbf01..31ee371 100644 --- a/protected-audience/samples/devtools-extension/index.md +++ b/protected-audience/samples/devtools-extension/index.md @@ -4,10 +4,16 @@ ## Description -This sample code shows how a Chrome DevTools extension for Protected Audience could be created. +This sample code shows how a Chrome DevTools extension for Protected Audience could be created. The sample code collects the events and organizes them in separate tables for different auctions. + +This is not an officially supported Google product. See the following files: - [All code samples](https://github.com/GoogleChromeLabs/trust-safety-demo/tree/main/protected-audience/samples/devtools-extension/src) - [`devtools.js`](https://github.com/GoogleChromeLabs/trust-safety-demo/tree/main/protected-audience/samples/devtools-extension/src/devtools.js) - [`service-worker.js`](https://github.com/GoogleChromeLabs/trust-safety-demo/tree/main/protected-audience/samples/devtools-extension/src/service-worker.js) + +## Instructions + +Download the files in the code sample's `/src` folder and [load the unpacked files](https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked) \ No newline at end of file