summaryrefslogtreecommitdiffstats
path: root/chrome/installer/mini_installer/chrome_appid.cc
diff options
context:
space:
mode:
authorgab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 16:53:20 +0000
committergab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 16:53:20 +0000
commit912f06843fb90f6b50a9b6e270253d67f9be1d88 (patch)
tree2dd6901ac44aee5933163b45cb5515b4e2e1b9d2 /chrome/installer/mini_installer/chrome_appid.cc
parent629ddf852c8b9b1d5c820496b77bffef78f3214f (diff)
downloadchromium_src-912f06843fb90f6b50a9b6e270253d67f9be1d88.zip
chromium_src-912f06843fb90f6b50a9b6e270253d67f9be1d88.tar.gz
chromium_src-912f06843fb90f6b50a9b6e270253d67f9be1d88.tar.bz2
Register Chrome in Active Setup to be called by Windows at user login.
This commit also adds --configure-user-settings flag to setup.exe which Active Setup will invoke at user login on system-level installs. For now this flag doesn't do anything (it will be implemented in a follow up CL). Active Setup design doc: https://docs.google.com/a/chromium.org/document/d/1yQdG1wMDKi_lf0i8bk6P2_BWqudRb-ap6Y2C5f1RO2w/edit This CL also introduces ScopedTokenPrivilege, a class meant to give the current process's token privileges for a short period of time while some critical operations (loading other users' registry hives) are happening. BUG=132825 TEST=From an admin prompt: setup_unittests.exe --gtest_filter=SetupUtilTest.ScopedTokenPrivilege* Windows only calls Active Setup's StubPath (i.e. setup.exe --configure-user-settings) if: 1) It never called it before (i.e. the HKCU equivalence of the Chrome Active Setup doesn't exist for this user). or 2) The version in HKLM is greater than the version in HKCU (i.e. Chrome has been updated since the last user login). Uninstalling Chrome deletes the HKCU entries for all users (logged in or not). Later reinstalling an older version of Chrome (just reinstall and manually hack the HKLM Active Setup version) has every user go through Active Setup again (if we didn't delete the values ourselves it wouldn't... which is why I had to introduce 75% of this CL simply to delete the HKCU Active Setup entries created by Windows for every user...) Review URL: https://chromiumcodereview.appspot.com/10810021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/mini_installer/chrome_appid.cc')
0 files changed, 0 insertions, 0 deletions