| Index: extensions/common/api/bluetooth/bluetooth_manifest_data.cc
|
| diff --git a/extensions/common/api/bluetooth/bluetooth_manifest_data.cc b/extensions/common/api/bluetooth/bluetooth_manifest_data.cc
|
| index 4d777cf1e8516b4fdeb1a873c07e5e79e8e01b76..cb85e08ba65ebaa440b53ed0a84415e23134931f 100644
|
| --- a/extensions/common/api/bluetooth/bluetooth_manifest_data.cc
|
| +++ b/extensions/common/api/bluetooth/bluetooth_manifest_data.cc
|
| @@ -46,6 +46,14 @@ bool BluetoothManifestData::CheckLowEnergyPermitted(
|
| }
|
|
|
| // static
|
| +bool BluetoothManifestData::CheckPeripheralPermitted(
|
| + const Extension* extension) {
|
| + const BluetoothManifestData* data = BluetoothManifestData::Get(extension);
|
| + return data && data->permission()->CheckLowEnergyPermitted(extension) &&
|
| + data->permission()->CheckPeripheralPermitted(extension);
|
| +}
|
| +
|
| +// static
|
| scoped_ptr<BluetoothManifestData> BluetoothManifestData::FromValue(
|
| const base::Value& value,
|
| base::string16* error) {
|
|
|