chromium/chrome/test/data/extensions/api_test/file_system_provider/service_worker/mime_type/app/main.js

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

chrome.app.runtime.onLaunched.addListener((/** @type{!Object} */ e) => {
  // Send the transformed launch event back to the text extension as soon as
  // this Chrome app is launched by it.
  chrome.runtime.sendMessage('pkplfbidichfdicaijlchgnapepdginl', {
    id: e.id,
    items: (e.items || []).map(item => ({
                                 type: item.type,
                                 entryName: item.entry.name,
                               })),
  });
});