Bug 1287946 - Update existing code to use mozilla::java; r=me
This commit is contained in:
@@ -21,7 +21,7 @@ class AndroidInputStream : public nsIInputStream
|
||||
{
|
||||
public:
|
||||
AndroidInputStream(jni::Object::Param connection) {
|
||||
mBridgeInputStream = widget::GeckoAppShell::CreateInputStream(connection);
|
||||
mBridgeInputStream = java::GeckoAppShell::CreateInputStream(connection);
|
||||
mBridgeChannel = AndroidBridge::ChannelCreate(mBridgeInputStream);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ private:
|
||||
mConnection = aConnection;
|
||||
SetURI(aURI);
|
||||
|
||||
auto type = widget::GeckoAppShell::ConnectionGetMimeType(mConnection);
|
||||
auto type = java::GeckoAppShell::ConnectionGetMimeType(mConnection);
|
||||
if (type) {
|
||||
SetContentType(type->ToCString());
|
||||
}
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
nsCString spec;
|
||||
aURI->GetSpec(spec);
|
||||
|
||||
auto connection = widget::GeckoAppShell::GetConnection(spec);
|
||||
auto connection = java::GeckoAppShell::GetConnection(spec);
|
||||
return connection ? new AndroidChannel(aURI, connection) : nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user