Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Issue 506061: Adapt Chrome to use KeystoneRegistration 1.0.7.1306 (Closed)

Created:
11 years ago by Mark Mentovai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Adapt Chrome to use KeystoneRegistration 1.0.7.1306. Use "tag path" and "tag key" to direct Keystone to use a tag stored in the application as opposed to in its ticket. BUG=30730 TEST= - ksadmin --print-ticket --productid com.google.Chrome should show tagPath pointing to GC.app/Contents/Info.plist, and tagKey of KSChannelID; - ksadmin --print-tag --productid com.google.Chrome should show the value of the KSChannelID key in GC.app/Contents/Info.plist; this should be the tag that is used for auto-updates The above steps should be validated after the following operations: - launching Chrome when on a user ticket, - promoting Chrome from a user ticket to a system ticket, and - when a Chrome update is applied (using this version of keystone_install.sh) when on either a user or a system ticket. The tagPath and tagKey will NOT be set when launching Chrome on a system (promoted) ticket, but they WILL be set when the ticket is initially promoted and also when an update is applied using this version of keystone_install.sh. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35030

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -43 lines) Patch
M chrome/browser/cocoa/keystone_glue.mm View 10 chunks +59 lines, -33 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/tools/build/mac/keystone_install.sh View 1 3 chunks +94 lines, -6 lines 0 comments Download
M chrome/tools/build/mac/keystone_install_test.sh View 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mark Mentovai
I'm still setting the tag directly in the ticket using ksadmin --tag (in keystone_install.sh) and ...
11 years ago (2009-12-17 22:12:22 UTC) #1
Mark Mentovai
Note to self: don't check this in without bringing in the newer Keystone version. I'm ...
11 years ago (2009-12-17 22:13:00 UTC) #2
John Grabowski
LGTM http://codereview.chromium.org/506061/diff/1/4 File chrome/tools/build/mac/keystone_install.sh (right): http://codereview.chromium.org/506061/diff/1/4#newcode351 chrome/tools/build/mac/keystone_install.sh:351: if [ ${KSADMIN_VERSION_MAJOR} -gt 1 ] || perhaps ...
11 years ago (2009-12-17 22:26:32 UTC) #3
TVL
http://codereview.chromium.org/506061/diff/1/2 File chrome/browser/cocoa/keystone_glue.mm (right): http://codereview.chromium.org/506061/diff/1/2#newcode152 chrome/browser/cocoa/keystone_glue.mm:152: const NSString* const kAutoupdateStatusVersion = @"version"; why not namespace ...
11 years ago (2009-12-18 03:23:56 UTC) #4
Mark Mentovai
http://codereview.chromium.org/506061/diff/1/2 File chrome/browser/cocoa/keystone_glue.mm (right): http://codereview.chromium.org/506061/diff/1/2#newcode152 chrome/browser/cocoa/keystone_glue.mm:152: const NSString* const kAutoupdateStatusVersion = @"version"; TVL wrote: > ...
11 years ago (2009-12-18 03:27:37 UTC) #5
Mark Dalrymple
Looks good to me.
11 years ago (2009-12-18 14:30:33 UTC) #6
Mark Mentovai
11 years ago (2009-12-18 19:59:20 UTC) #7
I refactored the version-check and feature-check stuff into some handy
functions.

I left the "11" exit codes alone because these ksadmin invocations really all do
the same thing.  In fact, I almost consolidated them into one call whose
arguments come from an array that has its elements set based on the presence of
the features, but I decided to hold off on that to keep this change simpler.

Powered by Google App Engine
This is Rietveld 408576698