| Index: chrome/browser/extensions/api/execute_code_function.cc
|
| diff --git a/chrome/browser/extensions/api/execute_code_function.cc b/chrome/browser/extensions/api/execute_code_function.cc
|
| index 52c70e6065ce23e9a5ab39472bf19b482f80cc83..96bfb9da97d5293af035e973fe4eddc9ea53e651 100644
|
| --- a/chrome/browser/extensions/api/execute_code_function.cc
|
| +++ b/chrome/browser/extensions/api/execute_code_function.cc
|
| @@ -127,7 +127,10 @@ bool ExecuteCodeFunction::Execute(const std::string& code_string) {
|
| frame_scope,
|
| run_at,
|
| ScriptExecutor::ISOLATED_WORLD,
|
| - IsWebView(),
|
| + IsWebView() ? ScriptExecutor::WEB_VIEW_PROCESS
|
| + : ScriptExecutor::DEFAULT_PROCESS,
|
| + has_callback() ? ScriptExecutor::JSON_SERIALIZED_RESULT
|
| + : ScriptExecutor::NO_RESULT,
|
| base::Bind(&ExecuteCodeFunction::OnExecuteCodeFinished, this));
|
| return true;
|
| }
|
|
|