Fix 5561: Support system-level install in the channel changer.
commitb182ccb20dfae6a26745fcc3b7d626287f946a2a
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Dec 2008 22:31:17 +0000 (18 22:31 +0000)
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Dec 2008 22:31:17 +0000 (18 22:31 +0000)
treec8fc349bd0807902f29f5d5d5d6246bb0fd9d1b7
parent4ef1d3c70bb9b845126a8344b33987e83ab6e0cb
Fix 5561: Support system-level install in the channel changer.

When Chrome is installed system wide, the Google Update keys reside under HKLM.
Under Vista, any writes to this key will get virtualized, unless we elevate
the channel_changer process. We don't want to elevate using a manifest, because
we don't want the UAC to pop up when the Channel Changer is used to configure a
user-level Chrome installation, so we detect at process startup whether we need
to elevate and relaunch the channel_changer process (elevated) if we need to
(before showing any UI).

Review URL: http://codereview.chromium.org/14855

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7260 0039d316-1c4b-4281-b951-d872f2087c98
tools/channel_changer/channel_changer.cc
tools/channel_changer/channel_changer.rc
tools/channel_changer/channel_changer.vcproj
tools/channel_changer/using_vista_platform_sdk.vsprops [new file with mode: 0644]