| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/installer/util/legacy_firewall_manager_win.h" | 5 #include "chrome/installer/util/legacy_firewall_manager_win.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/stringprintf.h" | |
| 9 #include "base/win/scoped_bstr.h" | 8 #include "base/win/scoped_bstr.h" |
| 10 | 9 |
| 11 namespace installer { | 10 namespace installer { |
| 12 | 11 |
| 13 LegacyFirewallManager::LegacyFirewallManager() {} | 12 LegacyFirewallManager::LegacyFirewallManager() {} |
| 14 | 13 |
| 15 LegacyFirewallManager::~LegacyFirewallManager() {} | 14 LegacyFirewallManager::~LegacyFirewallManager() {} |
| 16 | 15 |
| 17 bool LegacyFirewallManager::Init(const base::string16& app_name, | 16 bool LegacyFirewallManager::Init(const base::string16& app_name, |
| 18 const base::FilePath& app_path) { | 17 const base::FilePath& app_path) { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 base::win::ScopedBstr(app_path_.value().c_str())); | 124 base::win::ScopedBstr(app_path_.value().c_str())); |
| 126 // IpVersion defaults to NET_FW_IP_VERSION_ANY. | 125 // IpVersion defaults to NET_FW_IP_VERSION_ANY. |
| 127 // Scope defaults to NET_FW_SCOPE_ALL. | 126 // Scope defaults to NET_FW_SCOPE_ALL. |
| 128 // RemoteAddresses defaults to "*". | 127 // RemoteAddresses defaults to "*". |
| 129 chrome_application->put_Enabled(allow ? VARIANT_TRUE : VARIANT_FALSE); | 128 chrome_application->put_Enabled(allow ? VARIANT_TRUE : VARIANT_FALSE); |
| 130 | 129 |
| 131 return chrome_application; | 130 return chrome_application; |
| 132 } | 131 } |
| 133 | 132 |
| 134 } // namespace installer | 133 } // namespace installer |
| OLD | NEW |