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

Unified Diff: chrome/installer/gcapi/gcapi.cc

Issue 2894483002: Migrate from ScopedComPtr::CreateInstance() to CoCreateInstance in chrome/... (Closed)
Patch Set: Fix Header Include Location 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 | « chrome/browser/win/settings_app_monitor.cc ('k') | chrome/installer/util/advanced_firewall_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi/gcapi.cc
diff --git a/chrome/installer/gcapi/gcapi.cc b/chrome/installer/gcapi/gcapi.cc
index 9f5de5ca8589a87aaed3cf121753796a1c27f48b..e1118db669353799749ac57b777df5d996201fe9 100644
--- a/chrome/installer/gcapi/gcapi.cc
+++ b/chrome/installer/gcapi/gcapi.cc
@@ -16,6 +16,7 @@
#include <string.h>
#define STRSAFE_NO_DEPRECATE
#include <windows.h>
+#include <objbase.h>
#include <strsafe.h>
#include <tlhelp32.h>
@@ -487,9 +488,8 @@ BOOL __stdcall LaunchGoogleChrome() {
bool ret = false;
ScopedComPtr<IProcessLauncher> ipl;
- if (SUCCEEDED(ipl.CreateInstance(__uuidof(ProcessLauncherClass),
- NULL,
- CLSCTX_LOCAL_SERVER))) {
+ if (SUCCEEDED(::CoCreateInstance(__uuidof(ProcessLauncherClass), NULL,
+ CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&ipl)))) {
if (SUCCEEDED(ipl->LaunchCmdLine(
chrome_command.GetCommandLineString().c_str())))
ret = true;
« no previous file with comments | « chrome/browser/win/settings_app_monitor.cc ('k') | chrome/installer/util/advanced_firewall_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698