Commit f29b4a2d authored by Robert Sesek's avatar Robert Sesek

Fix about:sandbox display on Android.

Don't do work in DCHECKs.

BUG=715792
R=nasko@chromium.org

Review-Url: https://codereview.chromium.org/2847573002 .
Cr-Commit-Position: refs/heads/master@{#467677}
parent 0cbb9fc2
......@@ -75,11 +75,12 @@ void SandboxStatusExtension::Install() {
v8::Local<v8::Object> chrome =
content::GetOrCreateChromeObject(isolate, context->Global());
DCHECK(chrome->Set(
bool success = chrome->Set(
gin::StringToSymbol(isolate, "getAndroidSandboxStatus"),
gin::CreateFunctionTemplate(
isolate, base::Bind(&SandboxStatusExtension::GetSandboxStatus, this))
->GetFunction()));
->GetFunction());
DCHECK(success);
}
void SandboxStatusExtension::GetSandboxStatus(gin::Arguments* args) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment