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

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

Issue 141743005: Extensions: Make it possible for permission parsing code to return a detailed error message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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.cc
===================================================================
--- chrome/common/extensions/permissions/bluetooth_permission.cc (revision 247036)
+++ chrome/common/extensions/permissions/bluetooth_permission.cc (working copy)
@@ -25,7 +25,8 @@
BluetoothPermission::~BluetoothPermission() {
}
-bool BluetoothPermission::FromValue(const base::Value* value) {
+bool BluetoothPermission::FromValue(const base::Value* value,
+ std::string* error) {
// Value may be omitted to gain access to non-profile functions.
if (!value)
return true;
@@ -36,7 +37,7 @@
return true;
if (!SetDisjunctionPermission<BluetoothPermissionData,
- BluetoothPermission>::FromValue(value)) {
+ BluetoothPermission>::FromValue(value, error)) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698