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 114f35d127b00d1bba76a1f0693bd73290cbeee1..448ab5ccfc8c702b32afde7525b4c8df4194e6ce 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,18 @@ const char* APIPermission::name() const { |
return info()->name(); |
} |
+std::string APIPermission::ToString() const { |
+ return name(); |
+} |
+ |
+bool APIPermission::ManifestEntryRequired() const { |
+ return true; |
+} |
+ |
+bool APIPermission::ManifestEntryForbidden() const { |
+ return false; |
+} |
+ |
PermissionMessage APIPermission::GetMessage_() const { |
return info()->GetMessage_(); |
} |
@@ -323,6 +336,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 }, |