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

Unified Diff: chrome/browser/win/settings_app_monitor.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/browser/win/jumplist_updater.cc ('k') | chrome/installer/util/advanced_firewall_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/settings_app_monitor.cc
diff --git a/chrome/browser/win/settings_app_monitor.cc b/chrome/browser/win/settings_app_monitor.cc
index fd47977b1a9ab1dbba1375ba019a096afb615700..c1d90c998fd3e4f44985ffc2b92cb89a3ee74fd7 100644
--- a/chrome/browser/win/settings_app_monitor.cc
+++ b/chrome/browser/win/settings_app_monitor.cc
@@ -222,17 +222,18 @@ base::string16 GetFlyoutParentAutomationId(IUIAutomation* automation,
base::win::ScopedVariant class_name(L"Flyout");
base::win::ScopedComPtr<IUIAutomationCondition> condition;
HRESULT result = automation->CreatePropertyCondition(
- UIA_ClassNamePropertyId, class_name, condition.Receive());
+ UIA_ClassNamePropertyId, class_name, condition.GetAddressOf());
if (FAILED(result))
return base::string16();
base::win::ScopedComPtr<IUIAutomationTreeWalker> tree_walker;
- result = automation->CreateTreeWalker(condition.Get(), tree_walker.Receive());
+ result =
+ automation->CreateTreeWalker(condition.Get(), tree_walker.GetAddressOf());
if (FAILED(result))
return base::string16();
base::win::ScopedComPtr<IUIAutomationCacheRequest> cache_request;
- result = automation->CreateCacheRequest(cache_request.Receive());
+ result = automation->CreateCacheRequest(cache_request.GetAddressOf());
if (FAILED(result))
return base::string16();
ConfigureCacheRequest(cache_request.Get());
@@ -723,7 +724,7 @@ SettingsAppMonitor::Context::GetEventHandler() {
if (SUCCEEDED(result)) {
obj->Initialize(task_runner_, weak_ptr_factory_.GetWeakPtr(),
automation_);
- obj->QueryInterface(event_handler_.Receive());
+ obj->QueryInterface(event_handler_.GetAddressOf());
}
}
return event_handler_;
@@ -752,7 +753,8 @@ HRESULT SettingsAppMonitor::Context::InstallObservers() {
// Create a cache request so that elements received by way of events contain
// all data needed for procesing.
base::win::ScopedComPtr<IUIAutomationCacheRequest> cache_request;
- HRESULT result = automation_->CreateCacheRequest(cache_request.Receive());
+ HRESULT result =
+ automation_->CreateCacheRequest(cache_request.GetAddressOf());
if (FAILED(result))
return result;
ConfigureCacheRequest(cache_request.Get());
@@ -765,7 +767,7 @@ HRESULT SettingsAppMonitor::Context::InstallObservers() {
// Observe invocations.
base::win::ScopedComPtr<IUIAutomationElement> desktop;
- result = automation_->GetRootElement(desktop.Receive());
+ result = automation_->GetRootElement(desktop.GetAddressOf());
if (desktop) {
result = automation_->AddAutomationEventHandler(
UIA_Invoke_InvokedEventId, desktop.Get(), TreeScope_Subtree,
« no previous file with comments | « chrome/browser/win/jumplist_updater.cc ('k') | chrome/installer/util/advanced_firewall_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698