Migrate from ScopedComPtr::CreateInstance() to CoCreateInstance in chrome/...
https://codereview.chromium.org/2894483002
This commit is contained in:
parent
79e59a88b4
commit
7f5fbb04e2
4 changed files with 14 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "atom/browser/native_window_views.h"
|
||||
|
||||
#include <objbase.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -756,8 +757,9 @@ void NativeWindowViews::FlashFrame(bool flash) {
|
|||
void NativeWindowViews::SetSkipTaskbar(bool skip) {
|
||||
#if defined(OS_WIN)
|
||||
base::win::ScopedComPtr<ITaskbarList> taskbar;
|
||||
if (FAILED(taskbar.CreateInstance(CLSID_TaskbarList, NULL,
|
||||
CLSCTX_INPROC_SERVER)) ||
|
||||
if (FAILED(::CoCreateInstance(CLSID_TaskbarList, nullptr,
|
||||
CLSCTX_INPROC_SERVER,
|
||||
IID_PPV_ARGS(&taskbar))) ||
|
||||
FAILED(taskbar->HrInit()))
|
||||
return;
|
||||
if (skip) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue