Welcome What's new in Chrome extensions Getting started 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+

Note: This API is only for extensions pre-installed by policy.

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

  • Pending

    This only returns a Promise when the callback parameter is not specified, and with MV3+. The type inside the Promise is the same as the 1st argument to callback.