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..8ce65948c5f871279f44ea0701a12d8efaf82f03 100644 |
--- a/extensions/common/api/bluetooth/bluetooth_manifest_data.cc |
+++ b/extensions/common/api/bluetooth/bluetooth_manifest_data.cc |
@@ -46,6 +46,13 @@ bool BluetoothManifestData::CheckLowEnergyPermitted( |
} |
// static |
+bool BluetoothManifestData::CheckPeripheralPermitted( |
+ const Extension* extension) { |
+ const BluetoothManifestData* data = BluetoothManifestData::Get(extension); |
+ return data && data->permission()->CheckLowEnergyPermitted(extension); |
armansito
2015/04/21 22:48:09
Shouldn't this be:
return data && data->permissio
rkc
2015/04/27 18:39:09
Whoops.
Done.
|
+} |
+ |
+// static |
scoped_ptr<BluetoothManifestData> BluetoothManifestData::FromValue( |
const base::Value& value, |
base::string16* error) { |