| 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 63e1efe9a7292f3fe2c145e5f4fce0e5dbcee8b7..71af4ac4e5e05ae32ca029463a13abe60c0a726e 100644
|
| --- a/chrome/browser/extensions/api/idltest/idltest_api.cc
|
| +++ b/chrome/browser/extensions/api/idltest/idltest_api.cc
|
| @@ -21,21 +21,21 @@ base::ListValue* CopyBinaryValueToIntegerList(const BinaryValue* input) {
|
|
|
| } // namespace
|
|
|
| -bool IdltestSendArrayBufferFunction::RunImpl() {
|
| +bool IdltestSendArrayBufferFunction::RunSync() {
|
| BinaryValue* input = NULL;
|
| EXTENSION_FUNCTION_VALIDATE(args_ != NULL && args_->GetBinary(0, &input));
|
| SetResult(CopyBinaryValueToIntegerList(input));
|
| return true;
|
| }
|
|
|
| -bool IdltestSendArrayBufferViewFunction::RunImpl() {
|
| +bool IdltestSendArrayBufferViewFunction::RunSync() {
|
| BinaryValue* input = NULL;
|
| EXTENSION_FUNCTION_VALIDATE(args_ != NULL && args_->GetBinary(0, &input));
|
| SetResult(CopyBinaryValueToIntegerList(input));
|
| return true;
|
| }
|
|
|
| -bool IdltestGetArrayBufferFunction::RunImpl() {
|
| +bool IdltestGetArrayBufferFunction::RunSync() {
|
| std::string hello = "hello world";
|
| BinaryValue* output =
|
| BinaryValue::CreateWithCopiedBuffer(hello.c_str(), hello.size());
|
|
|