| Index: chrome/browser/extensions/extension_function.cc
|
| diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
|
| index 26adefb7245b5c27e9fd227b34630d57ffcb8722..c15c18ba8e4fda737f49ffab136a12a0802a4f9f 100644
|
| --- a/chrome/browser/extensions/extension_function.cc
|
| +++ b/chrome/browser/extensions/extension_function.cc
|
| @@ -4,24 +4,13 @@
|
|
|
| #include "chrome/browser/extensions/extension_function.h"
|
|
|
| -#include "base/json_reader.h"
|
| #include "base/json_writer.h"
|
| #include "base/logging.h"
|
| #include "chrome/browser/extensions/extension_function_dispatcher.h"
|
|
|
| -void AsyncExtensionFunction::SetArgs(const std::string& args) {
|
| +void AsyncExtensionFunction::SetArgs(const Value* args) {
|
| DCHECK(!args_); // Should only be called once.
|
| - if (!args.empty()) {
|
| - JSONReader reader;
|
| - args_ = reader.JsonToValue(args, false, false);
|
| -
|
| - // Since we do the serialization in the v8 extension, we should always get
|
| - // valid JSON.
|
| - if (!args_) {
|
| - DCHECK(false);
|
| - return;
|
| - }
|
| - }
|
| + args_ = args->DeepCopy();
|
| }
|
|
|
| const std::string AsyncExtensionFunction::GetResult() {
|
|
|