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

Unified Diff: webkit/tools/test_shell/mac/KeystoneGlue.m

Issue 18521: Keystone auto-update support for TestShell (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/mac/pkg-dmg ('k') | webkit/tools/test_shell/mac/TestShell.xcodeproj/package_test_shell.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/mac/KeystoneGlue.m
===================================================================
--- webkit/tools/test_shell/mac/KeystoneGlue.m (revision 8565)
+++ webkit/tools/test_shell/mac/KeystoneGlue.m (working copy)
@@ -18,13 +18,20 @@
@implementation KeystoneGlue
+// TODO(mmentovai): Determine if the app is writable, and don't register for
+// updates if not - but keep the periodic activity pings.
+ (void)registerWithKeystone {
// Figure out who we are.
NSBundle* mainBundle = [NSBundle mainBundle];
NSString* bundleIdentifier = [mainBundle bundleIdentifier];
NSDictionary* infoDictionary = [mainBundle infoDictionary];
NSString* url = [infoDictionary objectForKey:@"KSUpdateURL"];
- NSString* version = [infoDictionary objectForKey:(id)kCFBundleVersionKey];
+ // TODO(mmentovai): The svn version serves our purposes for now, but it will
+ // likely be replaced. The key problem is that it does not monotonically
+ // increase for releases when considering svn branches and tags. For the
+ // purposes of TestShell, though, which will likely only ever survive in
+ // auto-updatable form in builds straight from the trunk, this is fine.
+ NSString* version = [infoDictionary objectForKey:@"SVNRevision"];
if (!bundleIdentifier || !url || !version) {
// If parameters required for Keystone are missing, don't use it.
return;
« no previous file with comments | « build/mac/pkg-dmg ('k') | webkit/tools/test_shell/mac/TestShell.xcodeproj/package_test_shell.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698