| 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 7b341530d7459be41316cb3348649471c261031a..1864fd8e3c5368c9da3738fb74c3d71792e12984 100644
|
| --- a/chrome/browser/extensions/api/idltest/idltest_api.cc
|
| +++ b/chrome/browser/extensions/api/idltest/idltest_api.cc
|
| @@ -26,22 +26,20 @@ std::unique_ptr<base::ListValue> CopyBinaryValueToIntegerList(
|
|
|
| } // namespace
|
|
|
| -bool IdltestSendArrayBufferFunction::RunSync() {
|
| +ExtensionFunction::ResponseAction IdltestSendArrayBufferFunction::Run() {
|
| BinaryValue* input = NULL;
|
| EXTENSION_FUNCTION_VALIDATE(args_ != NULL && args_->GetBinary(0, &input));
|
| - SetResult(CopyBinaryValueToIntegerList(input));
|
| - return true;
|
| + return RespondNow(OneArgument(CopyBinaryValueToIntegerList(input)));
|
| }
|
|
|
| -bool IdltestSendArrayBufferViewFunction::RunSync() {
|
| +ExtensionFunction::ResponseAction IdltestSendArrayBufferViewFunction::Run() {
|
| BinaryValue* input = NULL;
|
| EXTENSION_FUNCTION_VALIDATE(args_ != NULL && args_->GetBinary(0, &input));
|
| - SetResult(CopyBinaryValueToIntegerList(input));
|
| - return true;
|
| + return RespondNow(OneArgument(CopyBinaryValueToIntegerList(input)));
|
| }
|
|
|
| -bool IdltestGetArrayBufferFunction::RunSync() {
|
| +ExtensionFunction::ResponseAction IdltestGetArrayBufferFunction::Run() {
|
| std::string hello = "hello world";
|
| - SetResult(BinaryValue::CreateWithCopiedBuffer(hello.c_str(), hello.size()));
|
| - return true;
|
| + return RespondNow(OneArgument(
|
| + BinaryValue::CreateWithCopiedBuffer(hello.c_str(), hello.size())));
|
| }
|
|
|