| Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (revision 170599)
|
| +++ chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (working copy)
|
| @@ -19,7 +19,6 @@
|
| #include "chrome/browser/extensions/extension_system.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/extensions/api/bluetooth.h"
|
| -#include "chrome/common/extensions/permissions/bluetooth_device_permission.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
| #include "device/bluetooth/bluetooth_device.h"
|
| @@ -63,7 +62,6 @@
|
| "Could not get local Out Of Band Pairing Data";
|
| const char kCouldNotSetOutOfBandPairingData[] =
|
| "Could not set Out Of Band Pairing Data";
|
| -const char kDevicePermissionDenied[] = "Permission to access device denied";
|
| const char kFailedToConnect[] = "Connection failed";
|
| const char kInvalidDevice[] = "Invalid device";
|
| const char kInvalidUuid[] = "Invalid UUID";
|
| @@ -345,13 +343,6 @@
|
| EXTENSION_FUNCTION_VALIDATE(params.get() != NULL);
|
| const bluetooth::ConnectOptions& options = params->options;
|
|
|
| - BluetoothDevicePermission::CheckParam param(options.device_address);
|
| - if (!GetExtension()->CheckAPIPermissionWithParam(
|
| - APIPermission::kBluetoothDevice, ¶m)) {
|
| - SetError(kDevicePermissionDenied);
|
| - return false;
|
| - }
|
| -
|
| std::string uuid = device::bluetooth_utils::CanonicalUuid(
|
| options.service_uuid);
|
| if (uuid.empty()) {
|
|
|