Bug 913985 - Part 5: refactor the Bridge to use the generated code. r=kats

This commit is contained in:
Chris Kitching
2013-11-12 10:41:01 -08:00
parent 86e0f2f22e
commit e115439e46
43 changed files with 457 additions and 1086 deletions

View File

@@ -2262,11 +2262,7 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
}
case kJavaContext_ANPGetValue: {
AndroidBridge *bridge = AndroidBridge::Bridge();
if (!bridge)
return NPERR_GENERIC_ERROR;
jobject ret = bridge->GetContext();
jobject ret = GeckoAppShell::GetContext();
if (!ret)
return NPERR_GENERIC_ERROR;