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

Unified Diff: remoting/host/setup/win/auth_code_getter.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 | « remoting/host/desktop_session_win.cc ('k') | ui/gfx/win/direct_manipulation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/win/auth_code_getter.cc
diff --git a/remoting/host/setup/win/auth_code_getter.cc b/remoting/host/setup/win/auth_code_getter.cc
index e255b741201cea8e6fe662ba0d77815bb745bf5b..4e51e587ce7e18a65d53923b4ca661090d1021cd 100644
--- a/remoting/host/setup/win/auth_code_getter.cc
+++ b/remoting/host/setup/win/auth_code_getter.cc
@@ -4,6 +4,8 @@
#include "remoting/host/setup/win/auth_code_getter.h"
+#include <objbase.h>
+
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "base/win/scoped_bstr.h"
@@ -32,8 +34,8 @@ void AuthCodeGetter::GetAuthCode(
return;
}
on_auth_code_ = on_auth_code;
- HRESULT hr = browser_.CreateInstance(CLSID_InternetExplorer, nullptr,
- CLSCTX_LOCAL_SERVER);
+ HRESULT hr = ::CoCreateInstance(CLSID_InternetExplorer, nullptr,
+ CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&browser_));
if (FAILED(hr)) {
on_auth_code_.Run("");
return;
« no previous file with comments | « remoting/host/desktop_session_win.cc ('k') | ui/gfx/win/direct_manipulation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698