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

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

Issue 2864523002: Rename ScopedComPtr::QueryInterface to ScopedComPtr::CopyTo (Closed)
Patch Set: 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/browser/win/jumplist_updater.cc
diff --git a/chrome/browser/win/jumplist_updater.cc b/chrome/browser/win/jumplist_updater.cc
index 0040196d6e726ad473ef5faeedb62d2c43f4ea39..c087a4c9546f4609137bacfba0099895f1b66f43 100644
--- a/chrome/browser/win/jumplist_updater.cc
+++ b/chrome/browser/win/jumplist_updater.cc
@@ -63,7 +63,7 @@ bool AddShellLink(base::win::ScopedComPtr<IObjectCollection> collection,
// shortcut which doesn't have titles.
// So, we should use the IPropertyStore interface to set its title.
base::win::ScopedComPtr<IPropertyStore> property_store;
- result = link.QueryInterface(property_store.Receive());
+ result = link.CopyTo(property_store.Receive());
if (FAILED(result))
return false;
@@ -196,7 +196,7 @@ bool JumpListUpdater::AddTasks(const ShellLinkItemList& link_items) {
// interface to retrieve each item in the list. So, we retrieve the
// IObjectArray interface from the EnumerableObjectCollection object.
base::win::ScopedComPtr<IObjectArray> object_array;
- result = collection.QueryInterface(object_array.Receive());
+ result = collection.CopyTo(object_array.Receive());
if (FAILED(result))
return false;
@@ -246,7 +246,7 @@ bool JumpListUpdater::AddCustomCategory(const std::wstring& category_name,
// It seems the ICustomDestinationList::AppendCategory() function just
// replaces all items in the given category with the ones in the new list.
base::win::ScopedComPtr<IObjectArray> object_array;
- result = collection.QueryInterface(object_array.Receive());
+ result = collection.CopyTo(object_array.Receive());
if (FAILED(result))
return false;
« no previous file with comments | « chrome/browser/google/google_update_win.cc ('k') | content/browser/accessibility/accessibility_event_recorder_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698