• mark@chromium.org's avatar
    Register with Keystone using a versionPath and versionKey. · 12d36ad6
    mark@chromium.org authored
    Providing this data to Keystone will cause it to check the application's
    Info.plist to determine the installed version, rather than using the version
    embedded within the ticket. The version in the ticket can become stale in
    some rare situations through innocent user action.
    
    This allows a user to replace Chrome with an earlier version (perhaps on
    another channel) and not get "stuck" without autoupdates until that channel
    catches up with the version listed in the ticket. (b/2506062)
    
    This also prevents Keystone from believing an update is still available if
    Chrome is updated but not restarted and the user subsequently promotes
    Chrome's user ticket to a system ticket from within Chrome. (crbug.com/38696)
    
    BUG=38696
    TEST=On a user ticket, ksadmin -p should show a versionPath and versionKey
         after Chrome is launched. If promoted to a system ticket, ksadmin -Sp
         should show these same two parameters.
    Review URL: http://codereview.chromium.org/6990046
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86387 0039d316-1c4b-4281-b951-d872f2087c98
    12d36ad6
keystone_glue.mm 33.8 KB