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

Unified Diff: base/test/test_shortcut_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
« no previous file with comments | « no previous file | base/win/scoped_comptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_shortcut_win.cc
diff --git a/base/test/test_shortcut_win.cc b/base/test/test_shortcut_win.cc
index e226734172239efbfc41b6c0095864dc0213d855..25dc372d24e09f57a99e50079a6d5a47f14491eb 100644
--- a/base/test/test_shortcut_win.cc
+++ b/base/test/test_shortcut_win.cc
@@ -5,6 +5,7 @@
#include "base/test/test_shortcut_win.h"
#include <windows.h>
+#include <objbase.h>
#include <shlobj.h>
#include <propkey.h>
@@ -62,8 +63,9 @@ void ValidateShortcut(const base::FilePath& shortcut_path,
HRESULT hr;
// Initialize the shell interfaces.
- EXPECT_TRUE(SUCCEEDED(hr = i_shell_link.CreateInstance(
- CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER)));
+ EXPECT_TRUE(SUCCEEDED(hr = ::CoCreateInstance(CLSID_ShellLink, NULL,
+ CLSCTX_INPROC_SERVER,
+ IID_PPV_ARGS(&i_shell_link))));
if (FAILED(hr))
return;
« no previous file with comments | « no previous file | base/win/scoped_comptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698