Skip to content

Commit fcb8bb8

Browse files
Uplift of #9240 (squashed) to beta
1 parent 06fcf3a commit fcb8bb8

File tree

6 files changed

+181
-156
lines changed

6 files changed

+181
-156
lines changed

android/java/org/chromium/chrome/browser/app/BraveActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ private void checkForYandexSE() {
478478
private void checkForNotificationData() {
479479
Intent notifIntent = getIntent();
480480
if (notifIntent != null && notifIntent.getStringExtra(RetentionNotificationUtil.NOTIFICATION_TYPE) != null) {
481-
Log.e("NTP", notifIntent.getStringExtra(RetentionNotificationUtil.NOTIFICATION_TYPE));
482481
String notificationType = notifIntent.getStringExtra(RetentionNotificationUtil.NOTIFICATION_TYPE);
483482
switch (notificationType) {
484483
case RetentionNotificationUtil.HOUR_3:

android/java/org/chromium/chrome/browser/preferences/website/BraveShieldsContentSettings.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ public static void setShieldsValue(Profile profile, String host, String resource
9595
BraveShieldsContentSettingsJni.get().setFingerprintingControlType(settingOption, host, profile);
9696
} else if (resourceIndentifier.equals(RESOURCE_IDENTIFIER_COOKIES)) {
9797
BraveShieldsContentSettingsJni.get().setCookieControlType(settingOption, host, profile);
98+
} else if (resourceIndentifier.equals(RESOURCE_IDENTIFIER_TRACKERS)) {
99+
BraveShieldsContentSettingsJni.get().setCosmeticFilteringControlType(
100+
settingOption, host, profile);
98101
}
99102
}
100103

@@ -119,6 +122,9 @@ public static String getShieldsValue(Profile profile, String host, String resour
119122
settings = BraveShieldsContentSettingsJni.get().getFingerprintingControlType(host, profile);
120123
} else if (resourceIndentifier.equals(RESOURCE_IDENTIFIER_COOKIES)) {
121124
settings = BraveShieldsContentSettingsJni.get().getCookieControlType(host, profile);
125+
} else if (resourceIndentifier.equals(RESOURCE_IDENTIFIER_TRACKERS)) {
126+
settings = BraveShieldsContentSettingsJni.get().getCosmeticFilteringControlType(
127+
host, profile);
122128
}
123129
return settings;
124130
}
@@ -160,5 +166,8 @@ interface Natives {
160166
boolean getHTTPSEverywhereEnabled(String url, Profile profile);
161167
void setNoScriptControlType(String type, String url, Profile profile);
162168
String getNoScriptControlType(String url, Profile profile);
169+
170+
void setCosmeticFilteringControlType(String type, String url, Profile profile);
171+
String getCosmeticFilteringControlType(String url, Profile profile);
163172
}
164173
}

0 commit comments

Comments
 (0)