summaryrefslogtreecommitdiffstats
path: root/chrome/browser/upgrade_detector.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 19:57:07 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 19:57:07 +0000
commite04c129ebf19e801119eaeefe54471f65379581a (patch)
treee383fc077413a70b324ae523c357ca3d25345c80 /chrome/browser/upgrade_detector.cc
parent0930752d49917c5f06188777b3b0f84a3644cce6 (diff)
downloadchromium_src-e04c129ebf19e801119eaeefe54471f65379581a.zip
chromium_src-e04c129ebf19e801119eaeefe54471f65379581a.tar.gz
chromium_src-e04c129ebf19e801119eaeefe54471f65379581a.tar.bz2
Fix windows build
BUG=none TEST=compile TBR=michaeln Review URL: http://codereview.chromium.org/2808005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/upgrade_detector.cc')
-rw-r--r--chrome/browser/upgrade_detector.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/upgrade_detector.cc b/chrome/browser/upgrade_detector.cc
index 49db0ce..8825889 100644
--- a/chrome/browser/upgrade_detector.cc
+++ b/chrome/browser/upgrade_detector.cc
@@ -78,10 +78,10 @@ class DetectUpgradeTask : public Task {
// Get the version of the currently *installed* instance of Chrome,
// which might be newer than the *running* instance if we have been
// upgraded in the background.
- Version* installed_version = InstallUtil::GetChromeVersion(false);
- if (!installed_version) {
+ scoped_ptr<Version> installed_version(InstallUtil::GetChromeVersion(false));
+ if (!installed_version.get()) {
// User level Chrome is not installed, check system level.
- installed_version = InstallUtil::GetChromeVersion(true);
+ installed_version.reset(InstallUtil::GetChromeVersion(true));
}
#elif defined(OS_LINUX)
CommandLine command_line(*CommandLine::ForCurrentProcess());