Index: chrome/browser/download/download_status_updater_win.cc |
diff --git a/chrome/browser/download/download_status_updater_win.cc b/chrome/browser/download/download_status_updater_win.cc |
index 257b8548fee066291cc3a31209c22e8d7ad21676..93a36f005c6c6d6d5f95496eca4853fe6ff03c5c 100644 |
--- a/chrome/browser/download/download_status_updater_win.cc |
+++ b/chrome/browser/download/download_status_updater_win.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/download/download_status_updater.h" |
+#include <objbase.h> |
#include <shobjidl.h> |
#include <string> |
@@ -25,8 +26,8 @@ void UpdateTaskbarProgressBar(int download_count, |
return; |
base::win::ScopedComPtr<ITaskbarList3> taskbar; |
- HRESULT result = taskbar.CreateInstance(CLSID_TaskbarList, NULL, |
- CLSCTX_INPROC_SERVER); |
+ HRESULT result = ::CoCreateInstance( |
+ CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&taskbar)); |
if (FAILED(result)) { |
DVLOG(1) << "Failed creating a TaskbarList object: " << result; |
return; |