Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: experimental/visual_studio_plugin/src/NaClVsx.Package/Installation/PortSupplierRegistrationAttribute.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/src/NaClVsx.Package/Installation/PortSupplierRegistrationAttribute.cs
diff --git a/experimental/visual_studio_plugin/src/NaClVsx.Package/Installation/PortSupplierRegistrationAttribute.cs b/experimental/visual_studio_plugin/src/NaClVsx.Package/Installation/PortSupplierRegistrationAttribute.cs
deleted file mode 100644
index 1242c0cd5e93f7fd940c6d5281363675bcb82ba5..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/NaClVsx.Package/Installation/PortSupplierRegistrationAttribute.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Microsoft.VisualStudio.Shell;
-
-namespace Google.NaClVsx.Installation
-{
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
- public sealed class PortSupplierRegistrationAttribute : RegistrationAttribute
- {
- public PortSupplierRegistrationAttribute(Type portSupplierType) {
- portSupplierType_ = portSupplierType;
- }
-
- public Type PortSupplierType {
- get { return portSupplierType_; }
- set { portSupplierType_ = value; }
- }
-
- public string Name {
- get { return name_; }
- set { name_ = value; }
- }
-
- public bool DisallowUserPorts {
- get { return disallowUserPorts_; }
- set { disallowUserPorts_ = value; }
- }
-
- #region Overrides of RegistrationAttribute
-
- public override void Register(RegistrationContext context) {
- Key key = context.CreateKey(KeyName());
- key.SetValue("CLSID", ClsIdString());
- key.SetValue("DisallowUserEnteredPorts", disallowUserPorts_ ? 1 : 0);
- key.SetValue("Name", name_);
- }
-
- public override void Unregister(RegistrationContext context) {
- context.RemoveKey(KeyName());
- }
-
- #endregion
-
- string ClsIdString() {
- return PortSupplierType.GUID.ToString("B");
- }
-
- string KeyName()
- {
- return string.Format("AD7Metrics\\PortSupplier\\{0}", ClsIdString());
- }
-
- private Type portSupplierType_;
- private string name_ = "[Port provider name goes here]";
- private bool disallowUserPorts_ = false;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698