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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_win.cc

Issue 2850683002: Remove ScopedComPtr::ReceiveVoid and Add ScopedComPtrRef (Closed)
Patch Set: 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
Index: ui/base/dragdrop/os_exchange_data_provider_win.cc
diff --git a/ui/base/dragdrop/os_exchange_data_provider_win.cc b/ui/base/dragdrop/os_exchange_data_provider_win.cc
index 3fa651b0c716e567a9837f76acb16a6a86dcbfdb..9d0338b03c57cbd646e65661a3d8ebb5cecc3429 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_win.cc
+++ b/ui/base/dragdrop/os_exchange_data_provider_win.cc
@@ -4,6 +4,7 @@
#include "ui/base/dragdrop/os_exchange_data_provider_win.h"
+#include <objbase.h>
#include <objidl.h>
#include <shlobj.h>
#include <shobjidl.h>
@@ -583,7 +584,7 @@ void OSExchangeDataProviderWin::SetDragImage(
base::win::ScopedComPtr<IDragSourceHelper> helper;
HRESULT rv = CoCreateInstance(CLSID_DragDropHelper, 0, CLSCTX_INPROC_SERVER,
- IID_IDragSourceHelper, helper.ReceiveVoid());
+ IID_PPV_ARGS(&helper));
if (!SUCCEEDED(rv))
return;

Powered by Google App Engine
This is Rietveld 408576698