summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run_win.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 20:04:07 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 20:04:07 +0000
commit530f43f302f1eef9d3530767015891f1db1f1272 (patch)
tree2006b20ca4022116b5d8c04784cec8802fb4d262 /chrome/browser/first_run_win.cc
parent0b9158f07ac7c5ed1dc1c166e4a1513d6fbbb9e9 (diff)
downloadchromium_src-530f43f302f1eef9d3530767015891f1db1f1272.zip
chromium_src-530f43f302f1eef9d3530767015891f1db1f1272.tar.gz
chromium_src-530f43f302f1eef9d3530767015891f1db1f1272.tar.bz2
Use ScopedComPtr instead of CComPtr to reduce a dependency on ATL.
BUG=5027 TEST=none Review URL: http://codereview.chromium.org/201012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run_win.cc')
-rw-r--r--chrome/browser/first_run_win.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/first_run_win.cc b/chrome/browser/first_run_win.cc
index 6ee44d6..6a9c534 100644
--- a/chrome/browser/first_run_win.cc
+++ b/chrome/browser/first_run_win.cc
@@ -23,6 +23,7 @@
#include "base/process.h"
#include "base/process_util.h"
#include "base/registry.h"
+#include "base/scoped_comptr_win.h"
#include "base/string_util.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
@@ -93,8 +94,8 @@ FilePath GetDefaultPrefFilePath(bool create_profile_dir,
}
bool InvokeGoogleUpdateForRename() {
- CComPtr<IProcessLauncher> ipl;
- if (!FAILED(ipl.CoCreateInstance(__uuidof(ProcessLauncherClass)))) {
+ ScopedComPtr<IProcessLauncher> ipl;
+ if (!FAILED(ipl.CreateInstance(__uuidof(ProcessLauncherClass)))) {
ULONG_PTR phandle = NULL;
DWORD id = GetCurrentProcessId();
if (!FAILED(ipl->LaunchCmdElevated(google_update::kChromeGuid,