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

Unified Diff: chrome/utility/shell_handler_impl_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
Index: chrome/utility/shell_handler_impl_win.cc
diff --git a/chrome/utility/shell_handler_impl_win.cc b/chrome/utility/shell_handler_impl_win.cc
index bd88cb89a99a414114f9893281e9ec205e03f388..fc29fa89067947df0cd3c68cbe3b2c303d954d55 100644
--- a/chrome/utility/shell_handler_impl_win.cc
+++ b/chrome/utility/shell_handler_impl_win.cc
@@ -97,7 +97,7 @@ bool IsPinnedToTaskbarHelper::ShortcutHasUnpinToTaskbarVerb(
base::win::ScopedComPtr<Folder> folder;
hresult = shell_dispatch->NameSpace(
base::win::ScopedVariant(shortcut.DirName().value().c_str()),
- folder.Receive());
+ folder.GetAddressOf());
if (FAILED(hresult) || !folder) {
error_occured_ = true;
return false;
@@ -106,14 +106,14 @@ bool IsPinnedToTaskbarHelper::ShortcutHasUnpinToTaskbarVerb(
base::win::ScopedComPtr<FolderItem> item;
hresult = folder->ParseName(
base::win::ScopedBstr(shortcut.BaseName().value().c_str()),
- item.Receive());
+ item.GetAddressOf());
if (FAILED(hresult) || !item) {
error_occured_ = true;
return false;
}
base::win::ScopedComPtr<FolderItemVerbs> verbs;
- hresult = item->Verbs(verbs.Receive());
+ hresult = item->Verbs(verbs.GetAddressOf());
if (FAILED(hresult) || !verbs) {
error_occured_ = true;
return false;
@@ -129,7 +129,8 @@ bool IsPinnedToTaskbarHelper::ShortcutHasUnpinToTaskbarVerb(
long error_count = 0;
for (long i = 0; i < verb_count; ++i) {
base::win::ScopedComPtr<FolderItemVerb> verb;
- hresult = verbs->Item(base::win::ScopedVariant(i, VT_I4), verb.Receive());
+ hresult =
+ verbs->Item(base::win::ScopedVariant(i, VT_I4), verb.GetAddressOf());
if (FAILED(hresult) || !verb) {
error_count++;
continue;
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | components/storage_monitor/portable_device_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698