Skip to content

Commit

Permalink
Use blink converter
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Oct 5, 2021
1 parent 86bc3b2 commit 8a6f39e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions shell/browser/api/electron_api_app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include "shell/common/electron_command_line.h"
#include "shell/common/electron_paths.h"
#include "shell/common/gin_converters/base_converter.h"
#include "shell/common/gin_converters/blink_converter.h"
#include "shell/common/gin_converters/callback_converter.h"
#include "shell/common/gin_converters/file_path_converter.h"
#include "shell/common/gin_converters/gurl_converter.h"
Expand Down Expand Up @@ -1105,12 +1106,8 @@ bool App::RequestSingleInstanceLock(gin::Arguments* args) {

auto cb = base::BindRepeating(&App::OnSecondInstance, base::Unretained(this));

v8::Isolate* isolate = args->isolate();
v8::Local<v8::Value> data_arg = args->PeekNext();
blink::CloneableMessage additional_data_message;
if (!data_arg.IsEmpty()) {
SerializeV8Value(isolate, data_arg, &additional_data_message);
}
args->GetNext(&additional_data_message);
#if defined(OS_WIN)
bool app_is_sandboxed =
IsSandboxEnabled(base::CommandLine::ForCurrentProcess());
Expand Down

0 comments on commit 8a6f39e

Please sign in to comment.