Commit 8778dbaf authored by Jinsong Fan's avatar Jinsong Fan Committed by Commit Bot

AW: Remove dead JNI function of AwQuotaManagerBridge

According to http://crrev/c/1742171, Java AwQuotaManagerBridge is not a
singleton and owned by Java AwBrowserContext. The JNI
GetDefaultNativeAwQuotaManagerBridge is no longer used.

Bug: None
Change-Id: I4714c9a703ccbddf62b9667dde3e4a2cde5bda74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082870Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Jinsong Fan <fanjinsong@sogou-inc.com>
Cr-Commit-Position: refs/heads/master@{#746606}
parent 49883ef3
...@@ -152,17 +152,6 @@ void RunOnUIThread(base::OnceClosure task) { ...@@ -152,17 +152,6 @@ void RunOnUIThread(base::OnceClosure task) {
} // namespace } // namespace
// static
jlong JNI_AwQuotaManagerBridge_GetDefaultNativeAwQuotaManagerBridge(
JNIEnv* env) {
AwBrowserContext* browser_context = AwBrowserContext::GetDefault();
AwQuotaManagerBridge* bridge = static_cast<AwQuotaManagerBridge*>(
browser_context->GetQuotaManagerBridge());
DCHECK(bridge);
return reinterpret_cast<intptr_t>(bridge);
}
// static // static
scoped_refptr<AwQuotaManagerBridge> AwQuotaManagerBridge::Create( scoped_refptr<AwQuotaManagerBridge> AwQuotaManagerBridge::Create(
AwBrowserContext* browser_context) { AwBrowserContext* browser_context) {
......
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