Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8792)

Unified Diff: chrome/common/extensions/permissions/bluetooth_permission.h

Issue 145663004: Replace "bluetooth" permission with manifest property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused function. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/permissions/bluetooth_permission.h
diff --git a/chrome/common/extensions/permissions/bluetooth_permission.h b/chrome/common/extensions/permissions/bluetooth_permission.h
deleted file mode 100644
index 8d0c009829edef41a57310d3df064d06fa500bab..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/permissions/bluetooth_permission.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_
-#define CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_
-
-#include <string>
-
-#include "chrome/common/extensions/permissions/bluetooth_permission_data.h"
-#include "chrome/common/extensions/permissions/set_disjunction_permission.h"
-#include "extensions/common/permissions/api_permission.h"
-
-namespace extensions {
-
-// BluetoothPermission represents the permission to implement a specific
-// Bluetooth Profile.
-class BluetoothPermission
- : public SetDisjunctionPermission<BluetoothPermissionData,
- BluetoothPermission> {
- public:
- // A Bluetooth profile uuid that should be checked for permission to access.
- struct CheckParam : APIPermission::CheckParam {
- explicit CheckParam(std::string uuid)
- : uuid(uuid) {}
- const std::string uuid;
- };
-
- explicit BluetoothPermission(const APIPermissionInfo* info);
- virtual ~BluetoothPermission();
-
- // SetDisjunctionPermission overrides.
- // BluetoothPermission permits an empty list for gaining permission to the
- // Bluetooth APIs without implementing a profile.
- virtual bool FromValue(const base::Value* value,
- std::string* error) OVERRIDE;
-
- // APIPermission overrides
- virtual PermissionMessages GetMessages() const OVERRIDE;
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_BLUETOOTH_PERMISSION_H_
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/common/extensions/permissions/bluetooth_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698