Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8511)

Unified Diff: chrome/renderer/sandbox_status_extension_android.cc

Issue 2847573002: Fix about:sandbox display on Android. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/sandbox_status_extension_android.cc
diff --git a/chrome/renderer/sandbox_status_extension_android.cc b/chrome/renderer/sandbox_status_extension_android.cc
index bfaff31047e06c9fb8cb1b51cb3a87e3ee7191c8..6840c224f6fef7547cdead554642e580597ba5a7 100644
--- a/chrome/renderer/sandbox_status_extension_android.cc
+++ b/chrome/renderer/sandbox_status_extension_android.cc
@@ -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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698