Index: chrome/common/extensions/permissions/api_permission.cc |
diff --git a/chrome/common/extensions/permissions/api_permission.cc b/chrome/common/extensions/permissions/api_permission.cc |
index dbccbd4e63bcbcfa0bb4afe679a0c06c4448dac4..e87ef4ce01e391e898803c822a9a8e1e00388939 100644 |
--- a/chrome/common/extensions/permissions/api_permission.cc |
+++ b/chrome/common/extensions/permissions/api_permission.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/common/extensions/permissions/api_permission.h" |
+#include "chrome/common/extensions/permissions/bluetooth_device_permission.h" |
#include "chrome/common/extensions/permissions/permissions_info.h" |
#include "chrome/common/extensions/permissions/socket_permission.h" |
#include "grit/generated_resources.h" |
@@ -116,6 +117,14 @@ const char* APIPermission::name() const { |
return info()->name(); |
} |
+std::string APIPermission::ToString() const { |
+ return name(); |
+} |
+ |
+bool APIPermission::ManifestEntryForbidden() const { |
+ return false; |
+} |
+ |
PermissionMessage APIPermission::GetMessage_() const { |
return info()->GetMessage_(); |
} |
@@ -323,6 +332,9 @@ void APIPermissionInfo::RegisterAllPermissions( |
{ APIPermission::kBluetooth, "bluetooth", kFlagNone, |
IDS_EXTENSION_PROMPT_WARNING_BLUETOOTH, |
PermissionMessage::kBluetooth }, |
+ { APIPermission::kBluetoothDevice, "bluetoothDevice", |
+ kFlagNone, 0, PermissionMessage::kNone, |
+ &::CreateAPIPermission<BluetoothDevicePermission> }, |
{ APIPermission::kUsb, "usb", kFlagNone, |
IDS_EXTENSION_PROMPT_WARNING_USB, |
PermissionMessage::kUsb }, |