| Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| index a8f9bdb36693d269a36ecc2f96b355c13465a700..6d4170a83495312c9c717204be6b52f385ab85d7 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| @@ -16,6 +16,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/extensions/api/bluetooth.h"
|
| #include "chrome/common/extensions/permissions/bluetooth_device_permission.h"
|
| +#include "chrome/common/extensions/permissions/permissions_data.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
| #include "device/bluetooth/bluetooth_device.h"
|
| @@ -375,8 +376,8 @@ bool BluetoothConnectFunction::DoWork(scoped_refptr<BluetoothAdapter> adapter) {
|
| const bluetooth::ConnectOptions& options = params->options;
|
|
|
| BluetoothDevicePermission::CheckParam param(options.device.address);
|
| - if (!GetExtension()->CheckAPIPermissionWithParam(
|
| - APIPermission::kBluetoothDevice, ¶m)) {
|
| + if (!PermissionsData::CheckAPIPermissionWithParam(
|
| + GetExtension(), APIPermission::kBluetoothDevice, ¶m)) {
|
| SetError(kDevicePermissionDenied);
|
| SendResponse(false);
|
| return false;
|
|
|