Index: net/url_request/url_request_unittest.cc |
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc |
index f167a35f04962b3ce7f7c72a7bffc441e70b9476..2d158a0492764e8196d54bd59c0bd6f0be81e459 100644 |
--- a/net/url_request/url_request_unittest.cc |
+++ b/net/url_request/url_request_unittest.cc |
@@ -11,6 +11,7 @@ |
#if defined(OS_WIN) |
#include <windows.h> |
+#include <objbase.h> |
#include <shlobj.h> |
#endif |
@@ -1262,8 +1263,8 @@ TEST_F(URLRequestTest, ResolveShortcutTest) { |
// Temporarily create a shortcut for test |
{ |
base::win::ScopedComPtr<IShellLink> shell; |
- ASSERT_TRUE(SUCCEEDED(shell.CreateInstance(CLSID_ShellLink, NULL, |
- CLSCTX_INPROC_SERVER))); |
+ ASSERT_TRUE(SUCCEEDED(::CoCreateInstance( |
+ CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&shell)))); |
base::win::ScopedComPtr<IPersistFile> persist; |
ASSERT_TRUE(SUCCEEDED(shell.CopyTo(persist.GetAddressOf()))); |
EXPECT_TRUE(SUCCEEDED(shell->SetPath(app_path.value().c_str()))); |