Index: extensions/common/api/bluetooth/bluetooth_manifest_permission.cc |
diff --git a/extensions/common/api/bluetooth/bluetooth_manifest_permission.cc b/extensions/common/api/bluetooth/bluetooth_manifest_permission.cc |
index 677206096ed5269d3ae0f9c3a3c05b8ac032436b..3d20c4c6934d5628e9512ce172ad8b8195673987 100644 |
--- a/extensions/common/api/bluetooth/bluetooth_manifest_permission.cc |
+++ b/extensions/common/api/bluetooth/bluetooth_manifest_permission.cc |
@@ -56,8 +56,8 @@ bool ParseUuidArray(BluetoothManifestPermission* permission, |
} // namespace |
BluetoothManifestPermission::BluetoothManifestPermission() |
- : socket_(false), |
- low_energy_(false) {} |
+ : socket_(false), low_energy_(false), peripheral_(false) { |
+} |
BluetoothManifestPermission::~BluetoothManifestPermission() {} |
@@ -83,6 +83,9 @@ scoped_ptr<BluetoothManifestPermission> BluetoothManifestPermission::FromValue( |
if (bluetooth->low_energy) { |
result->low_energy_ = *(bluetooth->low_energy); |
} |
+ if (bluetooth->peripheral) { |
+ result->peripheral_ = *(bluetooth->peripheral); |
+ } |
return result.Pass(); |
} |
@@ -111,6 +114,11 @@ bool BluetoothManifestPermission::CheckLowEnergyPermitted( |
return low_energy_; |
} |
+bool BluetoothManifestPermission::CheckPeripheralPermitted( |
+ const Extension* extension) const { |
+ return peripheral_; |
+} |
+ |
std::string BluetoothManifestPermission::name() const { |
return manifest_keys::kBluetooth; |
} |