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

Unified Diff: chrome/browser/win/settings_app_monitor.cc

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 Created 3 years, 8 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 ed6faad690e660b3a44d6777d696d6add237c85d..fd47977b1a9ab1dbba1375ba019a096afb615700 100644
--- a/chrome/browser/win/settings_app_monitor.cc
+++ b/chrome/browser/win/settings_app_monitor.cc
@@ -227,7 +227,7 @@ base::string16 GetFlyoutParentAutomationId(IUIAutomation* automation,
return base::string16();
base::win::ScopedComPtr<IUIAutomationTreeWalker> tree_walker;
- result = automation->CreateTreeWalker(condition.get(), tree_walker.Receive());
+ result = automation->CreateTreeWalker(condition.Get(), tree_walker.Receive());
if (FAILED(result))
return base::string16();
@@ -235,12 +235,12 @@ base::string16 GetFlyoutParentAutomationId(IUIAutomation* automation,
result = automation->CreateCacheRequest(cache_request.Receive());
if (FAILED(result))
return base::string16();
- ConfigureCacheRequest(cache_request.get());
+ ConfigureCacheRequest(cache_request.Get());
// From MSDN, NormalizeElementBuildCache() "Retrieves the ancestor element
// nearest to the specified Microsoft UI Automation element in the tree view".
IUIAutomationElement* flyout_element = nullptr;
- result = tree_walker->NormalizeElementBuildCache(element, cache_request.get(),
+ result = tree_walker->NormalizeElementBuildCache(element, cache_request.Get(),
&flyout_element);
if (FAILED(result) || !flyout_element)
return base::string16();
@@ -560,7 +560,7 @@ HRESULT SettingsAppMonitor::Context::EventHandler::HandleAutomationEvent(
<< ", runtime id: " << IntArrayToString(GetCachedInt32ArrayValue(
sender, UIA_RuntimeIdPropertyId));
- switch (DetectElementType(automation_.get(), sender)) {
+ switch (DetectElementType(automation_.Get(), sender)) {
case ElementType::DEFAULT_BROWSER:
context_runner_->PostTask(
FROM_HERE,
@@ -679,7 +679,7 @@ void SettingsAppMonitor::Context::HandleFocusChangedEvent(
DCHECK(task_runner_->BelongsToCurrentThread());
// Duplicate focus changed events are suppressed.
- ElementType element_type = DetectElementType(automation_.get(), sender.get());
+ ElementType element_type = DetectElementType(automation_.Get(), sender.Get());
if (last_focused_element_ == element_type)
return;
last_focused_element_ = element_type;
@@ -733,7 +733,7 @@ base::win::ScopedComPtr<IUIAutomationEventHandler>
SettingsAppMonitor::Context::GetAutomationEventHandler() {
DCHECK(task_runner_->BelongsToCurrentThread());
base::win::ScopedComPtr<IUIAutomationEventHandler> handler;
- handler.QueryFrom(GetEventHandler().get());
+ handler.QueryFrom(GetEventHandler().Get());
return handler;
}
@@ -741,7 +741,7 @@ base::win::ScopedComPtr<IUIAutomationFocusChangedEventHandler>
SettingsAppMonitor::Context::GetFocusChangedEventHandler() {
DCHECK(task_runner_->BelongsToCurrentThread());
base::win::ScopedComPtr<IUIAutomationFocusChangedEventHandler> handler;
- handler.QueryFrom(GetEventHandler().get());
+ handler.QueryFrom(GetEventHandler().Get());
return handler;
}
@@ -755,11 +755,11 @@ HRESULT SettingsAppMonitor::Context::InstallObservers() {
HRESULT result = automation_->CreateCacheRequest(cache_request.Receive());
if (FAILED(result))
return result;
- ConfigureCacheRequest(cache_request.get());
+ ConfigureCacheRequest(cache_request.Get());
// Observe changes in focus.
result = automation_->AddFocusChangedEventHandler(
- cache_request.get(), GetFocusChangedEventHandler().get());
+ cache_request.Get(), GetFocusChangedEventHandler().Get());
if (FAILED(result))
return result;
@@ -768,8 +768,8 @@ HRESULT SettingsAppMonitor::Context::InstallObservers() {
result = automation_->GetRootElement(desktop.Receive());
if (desktop) {
result = automation_->AddAutomationEventHandler(
- UIA_Invoke_InvokedEventId, desktop.get(), TreeScope_Subtree,
- cache_request.get(), GetAutomationEventHandler().get());
+ UIA_Invoke_InvokedEventId, desktop.Get(), TreeScope_Subtree,
+ cache_request.Get(), GetAutomationEventHandler().Get());
}
return result;
« 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