Index: chrome/browser/extensions/api/idltest/idltest_api.cc |
diff --git a/chrome/browser/extensions/api/idltest/idltest_api.cc b/chrome/browser/extensions/api/idltest/idltest_api.cc |
index 1feff0a8cd6af633729b3b9787f795eac2b661ad..744aa7969eba51c88e5b3bae1fc291488d3c1b2d 100644 |
--- a/chrome/browser/extensions/api/idltest/idltest_api.cc |
+++ b/chrome/browser/extensions/api/idltest/idltest_api.cc |
@@ -24,14 +24,14 @@ ListValue* CopyBinaryValueToIntegerList(const BinaryValue* input) { |
bool IdltestSendArrayBufferFunction::RunImpl() { |
BinaryValue* input = NULL; |
EXTENSION_FUNCTION_VALIDATE(args_ != NULL && args_->GetBinary(0, &input)); |
- result_.reset(CopyBinaryValueToIntegerList(input)); |
+ SetResult(CopyBinaryValueToIntegerList(input)); |
return true; |
} |
bool IdltestSendArrayBufferViewFunction::RunImpl() { |
BinaryValue* input = NULL; |
EXTENSION_FUNCTION_VALIDATE(args_ != NULL && args_->GetBinary(0, &input)); |
- result_.reset(CopyBinaryValueToIntegerList(input)); |
+ SetResult(CopyBinaryValueToIntegerList(input)); |
return true; |
} |
@@ -39,6 +39,6 @@ bool IdltestGetArrayBufferFunction::RunImpl() { |
std::string hello = "hello world"; |
BinaryValue* output = |
BinaryValue::CreateWithCopiedBuffer(hello.c_str(), hello.size()); |
- result_.reset(output); |
+ SetResult(output); |
return true; |
} |