summaryrefslogtreecommitdiffstats
path: root/chrome/app/google_update_client.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 23:38:32 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 23:38:32 +0000
commit48d4387babfc1e9a78028bce546bdccddb2e542b (patch)
tree6283b88d67a92b63d1e6db74862dbdf58de23e7e /chrome/app/google_update_client.cc
parentaaa73ccc7ba5a44ce12160bfbb17a04743c2add5 (diff)
downloadchromium_src-48d4387babfc1e9a78028bce546bdccddb2e542b.zip
chromium_src-48d4387babfc1e9a78028bce546bdccddb2e542b.tar.gz
chromium_src-48d4387babfc1e9a78028bce546bdccddb2e542b.tar.bz2
This fixes the following bugs1. http://b/issue?id=1447957 For machine installs we need to use a different version of the Omaha updater.2. http://b/issue?id=1447951 For Vista we need to elevate while performing the update operation. This only applies to machine installs. Update checks also instantiate the same COM object. However it does not need elevation.Bug=1447957, 1447951R=finnur, kuchhal
Review URL: http://codereview.chromium.org/8221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/google_update_client.cc')
-rw-r--r--chrome/app/google_update_client.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/app/google_update_client.cc b/chrome/app/google_update_client.cc
index b691ec5..8ae8aee 100644
--- a/chrome/app/google_update_client.cc
+++ b/chrome/app/google_update_client.cc
@@ -9,6 +9,7 @@
#include "chrome/app/client_util.h"
#include "chrome/installer/util/google_update_constants.h"
+#include "chrome/installer/util/install_util.h"
namespace {
const wchar_t kEnvProductVersionKey[] = L"CHROME_VERSION";
@@ -108,7 +109,7 @@ bool GoogleUpdateClient::Launch(HINSTANCE instance,
bool GoogleUpdateClient::Init(const wchar_t* client_guid,
const wchar_t* client_dll) {
client_util::GetExecutablePath(dll_path_);
- user_mode_ = client_util::IsUserModeInstall(dll_path_);
+ user_mode_ = InstallUtil::IsPerUserInstall(dll_path_);
guid_.assign(client_guid);
dll_.assign(client_dll);