From ce5fe2496f5ad48afaf05560b881d1c7209ce564 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:24:48 +0200 Subject: [PATCH] Delete SuggestedContent.cs --- .../Settings/Privacy/SuggestedContent.cs | 64 ------------------- 1 file changed, 64 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/SuggestedContent.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/SuggestedContent.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/SuggestedContent.cs deleted file mode 100644 index 151fcbb..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/SuggestedContent.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class SuggestedContent : SettingBase - { - private const string SubscribedContent338393 = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; - private const string SubscribedContent353694 = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; - private const string SubscribedContent353696 = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacySuggestedContent; - } - - public override string Info() - { - return Properties.Resources.settingsPrivacySuggestedContentInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(SubscribedContent338393, "SubscribedContent-338393Enabled", DesiredValue) && - RegistryHelper.IntEquals(SubscribedContent353694, "SubscribedContent-353694Enabled", DesiredValue) && - RegistryHelper.IntEquals(SubscribedContent353696, "SubscribedContent-353696Enabled", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(SubscribedContent338393, "SubscribedContent-338393Enabled", DesiredValue, RegistryValueKind.DWord); - Registry.SetValue(SubscribedContent353694, "SubscribedContent-353694Enabled", DesiredValue, RegistryValueKind.DWord); - Registry.SetValue(SubscribedContent353696, "SubscribedContent-353696Enabled", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(SubscribedContent338393, "SubscribedContent-338393Enabled", 1, RegistryValueKind.DWord); - Registry.SetValue(SubscribedContent353694, "SubscribedContent-353694Enabled", 1, RegistryValueKind.DWord); - Registry.SetValue(SubscribedContent353696, "SubscribedContent-353696Enabled", 1, RegistryValueKind.DWord); - - return true; - } - catch - { } - - return false; - } - - - } -} \ No newline at end of file