Merge pull request #19884 from brave/request_otr_behinf_flag_android
Request otr behind flag android
This commit is contained in:
@@ -27,4 +27,5 @@ public abstract class BraveFeatureList {
|
||||
public static final String BRAVE_SPEEDREADER = "Speedreader";
|
||||
public static final String HTTPS_BY_DEFAULT = "HttpsByDefault";
|
||||
public static final String BRAVE_FORGET_FIRST_PARTY_STORAGE = "BraveForgetFirstPartyStorage";
|
||||
public static final String BRAVE_REQUEST_OTR_TAB = "BraveRequestOTRTab";
|
||||
}
|
||||
|
||||
@@ -694,8 +694,6 @@ public class BravePrivacySettings extends PrivacySettings implements ConnectionE
|
||||
getActivity().getResources().getString(R.string.block_fingerprinting_option_3));
|
||||
}
|
||||
|
||||
updateRequestOtrPref();
|
||||
|
||||
if (httpsUpgradePref.equals(BraveShieldsContentSettings.BLOCK_RESOURCE)) {
|
||||
mHttpsUpgradePref.setCheckedIndex(0);
|
||||
mHttpsUpgradePref.setSummary(
|
||||
@@ -800,6 +798,12 @@ public class BravePrivacySettings extends PrivacySettings implements ConnectionE
|
||||
if (!ChromeFeatureList.isEnabled(BraveFeatureList.BRAVE_WALLET_SNS)) {
|
||||
removePreferenceIfPresent(PREF_SNS);
|
||||
}
|
||||
|
||||
if (!ChromeFeatureList.isEnabled(BraveFeatureList.BRAVE_REQUEST_OTR_TAB)) {
|
||||
removePreferenceIfPresent(PREF_REQUEST_OTR);
|
||||
} else {
|
||||
updateRequestOtrPref();
|
||||
}
|
||||
}
|
||||
|
||||
private void updateRequestOtrPref() {
|
||||
|
||||
Reference in New Issue
Block a user