summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/usb
diff options
context:
space:
mode:
authorDHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 02:13:58 +0000
committerDHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 02:13:58 +0000
commitaa15e2e3f63bfe8357e7adbf8672a71e1db75e04 (patch)
treefdb42cbbd835d773b6fd72cf67c88a857f4bab22 /chrome/browser/extensions/api/usb
parent375dd7d25b9007806f195f391e24b01fb069ba32 (diff)
downloadchromium_src-aa15e2e3f63bfe8357e7adbf8672a71e1db75e04.zip
chromium_src-aa15e2e3f63bfe8357e7adbf8672a71e1db75e04.tar.gz
chromium_src-aa15e2e3f63bfe8357e7adbf8672a71e1db75e04.tar.bz2
c/b/extensions: Do not use Value::Create*.
src/tools/json_schema_compiler: Do not use Value::Create*. BUG=160586 Review URL: https://chromiumcodereview.appspot.com/22885002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/usb')
-rw-r--r--chrome/browser/extensions/api/usb/usb_api.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/api/usb/usb_api.cc b/chrome/browser/extensions/api/usb/usb_api.cc
index 878e362..6fa3aa2 100644
--- a/chrome/browser/extensions/api/usb/usb_api.cc
+++ b/chrome/browser/extensions/api/usb/usb_api.cc
@@ -65,7 +65,7 @@ static const char kErrorCannotClaimInterface[] = "Error claiming interface.";
static const char kErrorCannotReleaseInterface[] = "Error releasing interface.";
static const char kErrorCannotSetInterfaceAlternateSetting[] =
"Error setting alternate interface setting.";
-static const char kErrorConvertDirection[] = "Invalid transfer direction.";
+static const char kErrorConvertDirection[] = "Invalid transsfer direction.";
static const char kErrorConvertRecipient[] = "Invalid transfer recipient.";
static const char kErrorConvertRequestType[] = "Invalid request type.";
static const char kErrorConvertSynchronizationType[] =
@@ -1041,14 +1041,14 @@ void UsbResetDeviceFunction::OnCompleted(bool success) {
base::Bind(&UsbResetDeviceFunction::OnError, this));
return;
}
- SetResult(Value::CreateBooleanValue(true));
+ SetResult(new base::FundamentalValue(true));
AsyncWorkCompleted();
}
void UsbResetDeviceFunction::OnError() {
RemoveUsbDeviceResource(parameters_->device.handle);
SetError(kErrorResetDevice);
- SetResult(Value::CreateBooleanValue(false));
+ SetResult(new base::FundamentalValue(false));
AsyncWorkCompleted();
}