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

Unified Diff: content/common/quarantine/quarantine_win.cc

Issue 2887243002: Remove ScopedComPtr::CreateInstance() (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: content/common/quarantine/quarantine_win.cc
diff --git a/content/common/quarantine/quarantine_win.cc b/content/common/quarantine/quarantine_win.cc
index 91eecc75e02d415468a2c53a52e3610f94d28c2a..3feb1966af8854527e17aa2f195465ce6cdcd720 100644
--- a/content/common/quarantine/quarantine_win.cc
+++ b/content/common/quarantine/quarantine_win.cc
@@ -197,7 +197,8 @@ bool InvokeAttachmentServices(const base::FilePath& full_path,
const GUID& client_guid,
HRESULT* save_result) {
base::win::ScopedComPtr<IAttachmentExecute> attachment_services;
- HRESULT hr = attachment_services.CreateInstance(CLSID_AttachmentServices);
+ HRESULT hr = ::CoCreateInstance(CLSID_AttachmentServices, nullptr, CLSCTX_ALL,
+ IID_PPV_ARGS(&attachment_services));
*save_result = S_OK;
if (FAILED(hr)) {
« no previous file with comments | « components/update_client/background_downloader_win.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698