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

Unified Diff: chrome/installer/util/legacy_firewall_manager_win.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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
« no previous file with comments | « chrome/installer/util/advanced_firewall_manager_win.cc ('k') | chrome/installer/util/wmi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/legacy_firewall_manager_win.cc
diff --git a/chrome/installer/util/legacy_firewall_manager_win.cc b/chrome/installer/util/legacy_firewall_manager_win.cc
index a27a8d91b8e11a8eba4851deb90792bbc4142adb..f9f88d1ef443b2261620009d2c3dde3dae7920b9 100644
--- a/chrome/installer/util/legacy_firewall_manager_win.cc
+++ b/chrome/installer/util/legacy_firewall_manager_win.cc
@@ -23,13 +23,13 @@ bool LegacyFirewallManager::Init(const base::string16& app_name,
}
base::win::ScopedComPtr<INetFwPolicy> firewall_policy;
- hr = firewall_manager->get_LocalPolicy(firewall_policy.Receive());
+ hr = firewall_manager->get_LocalPolicy(firewall_policy.GetAddressOf());
if (FAILED(hr)) {
DLOG(ERROR) << logging::SystemErrorCodeToString(hr);
return false;
}
- hr = firewall_policy->get_CurrentProfile(current_profile_.Receive());
+ hr = firewall_policy->get_CurrentProfile(current_profile_.GetAddressOf());
if (FAILED(hr)) {
DLOG(ERROR) << logging::SystemErrorCodeToString(hr);
current_profile_ = NULL;
@@ -56,9 +56,9 @@ bool LegacyFirewallManager::GetAllowIncomingConnection(bool* value) {
return false;
base::win::ScopedComPtr<INetFwAuthorizedApplication> chrome_application;
- HRESULT hr = authorized_apps->Item(
- base::win::ScopedBstr(app_path_.value().c_str()),
- chrome_application.Receive());
+ HRESULT hr =
+ authorized_apps->Item(base::win::ScopedBstr(app_path_.value().c_str()),
+ chrome_application.GetAddressOf());
if (FAILED(hr))
return false;
VARIANT_BOOL is_enabled = VARIANT_FALSE;
@@ -98,8 +98,8 @@ void LegacyFirewallManager::DeleteRule() {
base::win::ScopedComPtr<INetFwAuthorizedApplications>
LegacyFirewallManager::GetAuthorizedApplications() {
base::win::ScopedComPtr<INetFwAuthorizedApplications> authorized_apps;
- HRESULT hr =
- current_profile_->get_AuthorizedApplications(authorized_apps.Receive());
+ HRESULT hr = current_profile_->get_AuthorizedApplications(
+ authorized_apps.GetAddressOf());
if (FAILED(hr)) {
DLOG(ERROR) << logging::SystemErrorCodeToString(hr);
return base::win::ScopedComPtr<INetFwAuthorizedApplications>();
« no previous file with comments | « chrome/installer/util/advanced_firewall_manager_win.cc ('k') | chrome/installer/util/wmi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698