8000 Final cleanup in AppSecurityManager · dotnet/wpf@d562996 · GitHub
[go: up one dir, main page]

Skip to content

Commit d562996

Browse files
committed
Final cleanup in AppSecurityManager
1 parent 47c9ac0 commit d562996

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppSecurityManager.cs

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,10 @@
1414
//
1515

1616
using System;
17-
using System.Collections;
18-
using System.Diagnostics;
19-
using System.Globalization;
20-
using System.Security;
21-
using Microsoft.Win32;
22-
using System.IO.Packaging;
17+
using MS.Win32;
2318
using System.Windows;
24-
using System.Windows.Interop;
2519
using MS.Internal.Utility;
26-
using MS.Win32;
2720
using System.Runtime.InteropServices;
28-
using MS.Internal.Documents.Application;
2921

3022
namespace MS.Internal.AppModel
3123
{
@@ -38,9 +30,6 @@ enum LaunchResult
3830

3931
internal static class AppSecurityManager
4032
{
41-
#region Internal Methods
42-
43-
4433
///<summary>
4534
/// Safely launch the browser if you can.
4635
/// If you can't demand unmanaged code permisison.
@@ -149,27 +138,5 @@ the key used is (supposedly) HKCR\htmlfile\shell\opennew\ddeexec, and its value
149138
throw new InvalidOperationException(SR.FailToLaunchDefaultBrowser,
150139
new System.ComponentModel.Win32Exception(/*uses the last Win32 error*/));
151140
}
152-
153-
#endregion Internal Methods
154-
155-
#region Private Methods
156-
157-
[ComImport, ComVisible(false), Guid("7b8a2d94-0ac9-11d1-896c-00c04Fb6bfc4")]
158-
internal class InternetSecurityManager { }
159-
160-
161-
#endregion Private Methods
162-
163-
#region Private Fields
164-
165-
private const string RefererHeader = "Referer: ";
166-
167-
private const string BrowserOpenCommandLookupKey = "htmlfile\\shell\\open\\command";
168-
169-
// Object to be used for locking. Using typeof(Util) causes an FxCop
170-
// violation DoNotLockOnObjectsWithWeakIdentity
171-
private static readonly object _lockObj = new object();
172-
173-
#endregion Private Fields
174141
}
175142
}

0 commit comments

Comments
 (0)
0