Commit f0a7efc1 authored by Greg Thompson's avatar Greg Thompson Committed by Commit Bot

Set InstallDate in the control panel to the current date on updates.

This allows users and admins to see when Chrome last updated (rather
than when it was originally installed) by looking in the Programs and
Features control panel. This seems to be the general behavior of other
apps.

BUG=807242
R=georgesak@chromium.org

Change-Id: I361efba2c48a88e7b9175ecd4c24a750fa3b8562
Reviewed-on: https://chromium-review.googlesource.com/c/1326007Reviewed-by: default avatarGeorges Khalil <georgesak@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606486}
parent 2dfa163d
...@@ -577,12 +577,9 @@ void AddUninstallShortcutWorkItems(const InstallerState& installer_state, ...@@ -577,12 +577,9 @@ void AddUninstallShortcutWorkItems(const InstallerState& installer_state,
true); true);
// TODO(wfh): Ensure that this value is preserved in the 64-bit hive when // TODO(wfh): Ensure that this value is preserved in the 64-bit hive when
// 64-bit installs place the uninstall information into the 64-bit registry. // 64-bit installs place the uninstall information into the 64-bit registry.
install_list->AddSetRegValueWorkItem(reg_root, install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg,
uninstall_reg, KEY_WOW64_32KEY, L"InstallDate",
KEY_WOW64_32KEY, InstallUtil::GetCurrentDate(), true);
L"InstallDate",
InstallUtil::GetCurrentDate(),
false);
const std::vector<uint32_t>& version_components = new_version.components(); const std::vector<uint32_t>& version_components = new_version.components();
if (version_components.size() == 4) { if (version_components.size() == 4) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment