Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mobile/android/base/java/org/adblockplus/browser/BrowserAppUtils.java

Issue 29863604: Issue 6865 - Update ABP dependency to version 3.2 (Closed)
Patch Set: Removing allowed contexts Created Aug. 28, 2018, 5:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mobile/android/base/java/org/adblockplus/browser/BrowserAppUtils.java
===================================================================
--- a/mobile/android/base/java/org/adblockplus/browser/BrowserAppUtils.java
+++ b/mobile/android/base/java/org/adblockplus/browser/BrowserAppUtils.java
@@ -36,17 +36,17 @@
if (selectedTab == null)
return;
final String url = selectedTab.getURL();
item.setEnabled(false);
item.setChecked(true);
if (UrlUtils.isSchemeHttpOrHttps(url))
{
- AddOnBridge.queryIsWebsiteWhitelisted(url, new AdblockPlusApiCallback()
+ ExtensionBridge.queryIsWebsiteWhitelisted(url, new AdblockPlusApiCallback()
{
@Override
public void onApiRequestSucceeded(GeckoBundle bundle)
{
final boolean whitelisted = bundle.getBoolean("value");
ThreadUtils.postToUiThread(new Runnable()
{
@Override
@@ -69,17 +69,17 @@
public static void updateCurrentTabWhitelisting(final MenuItem item)
{
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
if (selectedTab == null)
return;
final String url = selectedTab.getURL();
- AddOnBridge.whitelistWebsite(url, item.isChecked(), new AdblockPlusApiCallback()
+ ExtensionBridge.whitelistWebsite(url, item.isChecked(), new AdblockPlusApiCallback()
{
@Override
public void onApiRequestSucceeded(GeckoBundle bundle)
{
ThreadUtils.postToUiThread(new Runnable()
{
@Override
public void run()

Powered by Google App Engine
This is Rietveld