@@ -95,6 +95,9 @@ public static void setShieldsValue(Profile profile, String host, String resource
95
95
BraveShieldsContentSettingsJni .get ().setFingerprintingControlType (settingOption , host , profile );
96
96
} else if (resourceIndentifier .equals (RESOURCE_IDENTIFIER_COOKIES )) {
97
97
BraveShieldsContentSettingsJni .get ().setCookieControlType (settingOption , host , profile );
98
+ } else if (resourceIndentifier .equals (RESOURCE_IDENTIFIER_TRACKERS )) {
99
+ BraveShieldsContentSettingsJni .get ().setCosmeticFilteringControlType (
100
+ settingOption , host , profile );
98
101
}
99
102
}
100
103
@@ -119,6 +122,9 @@ public static String getShieldsValue(Profile profile, String host, String resour
119
122
settings = BraveShieldsContentSettingsJni .get ().getFingerprintingControlType (host , profile );
120
123
} else if (resourceIndentifier .equals (RESOURCE_IDENTIFIER_COOKIES )) {
121
124
settings = BraveShieldsContentSettingsJni .get ().getCookieControlType (host , profile );
125
+ } else if (resourceIndentifier .equals (RESOURCE_IDENTIFIER_TRACKERS )) {
126
+ settings = BraveShieldsContentSettingsJni .get ().getCosmeticFilteringControlType (
127
+ host , profile );
122
128
}
123
129
return settings ;
124
130
}
@@ -160,5 +166,8 @@ interface Natives {
160
166
boolean getHTTPSEverywhereEnabled (String url , Profile profile );
161
167
void setNoScriptControlType (String type , String url , Profile profile );
162
168
String getNoScriptControlType (String url , Profile profile );
169
+
170
+ void setCosmeticFilteringControlType (String type , String url , Profile profile );
171
+ String getCosmeticFilteringControlType (String url , Profile profile );
163
172
}
164
173
}
0 commit comments