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 f92102171bbb353ce278167a28ae80e3bf446b9f..b6cf1660dd3c0d2da3edb0c5f8d8b9270a5b7257 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
@@ -13,7 +13,7 @@ |
#include "chrome/browser/extensions/event_names.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/extensions/api/bluetooth.h" |
-#include "chrome/common/extensions/permissions/bluetooth_permission.h" |
+#include "chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h" |
#include "content/public/browser/browser_thread.h" |
#include "device/bluetooth/bluetooth_adapter.h" |
#include "device/bluetooth/bluetooth_device.h" |
@@ -125,10 +125,9 @@ bool BluetoothAddProfileFunction::RunImpl() { |
return false; |
} |
- BluetoothPermission::CheckParam param(params->profile.uuid); |
- if (!PermissionsData::CheckAPIPermissionWithParam( |
- GetExtension(), APIPermission::kBluetooth, ¶m)) { |
- SetError(kPermissionDenied); |
+ BluetoothPermissionRequest param(params->profile.uuid); |
+ if (!BluetoothManifestData::CheckRequest(GetExtension(), param)) { |
+ error_ = kPermissionDenied; |
return false; |
} |