Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in Chrome extensions API reference Samples

chrome.enterprise.hardwarePlatform

  • Description

    Use the chrome.enterprise.hardwarePlatform API to get the manufacturer and model of the hardware platform where the browser runs. Note: This API is only available to extensions installed by enterprise policy.

  • Permissions
    enterprise.hardwarePlatform
  • Availability
    Chrome 71+ Requires policy

Note: This API is only for extensions pre-installed by policy. The EnterpriseHardwarePlatformAPIEnabled policy key must also be set.

Summary

Types

HardwarePlatformInfo

Properties

  • manufacturer

    string

  • model

    string

Methods

getHardwarePlatformInfo

chrome.enterprise.hardwarePlatform.getHardwarePlatformInfo(
  callback?: function,
)
Promise

Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via callback.

Parameters

Returns

  • Chrome 96+

    Promises are supported in Manifest V3 and later, but callbacks are provided for backward compatibility. You cannot use both on the same function call. The promise resolves with the same type that is passed to the callback.

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.