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

Unified Diff: tools/channel_changer/channel_changer.cc

Issue 17050: Update Channel Changer to support a new Dev channel tag.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 12 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 | « no previous file | tools/channel_changer/channel_changer.rc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/channel_changer/channel_changer.cc
===================================================================
--- tools/channel_changer/channel_changer.cc (revision 7540)
+++ tools/channel_changer/channel_changer.cc (working copy)
@@ -12,6 +12,7 @@
enum Branch {
UNKNOWN_BRANCH = 0,
DEV_BRANCH,
+ OLD_DEV_BRANCH,
BETA_BRANCH,
STABLE_BRANCH,
};
@@ -19,6 +20,7 @@
// This vector of strings needs to be in sync with the Branch enum above.
static const wchar_t* const kBranchStrings[] = {
L"?",
+ L"2.0-dev",
L"1.1-dev",
L"1.1-beta",
L"",
@@ -28,6 +30,7 @@
static const wchar_t* const kBranchStringsReadable[] = {
L"?",
L"Dev",
+ L"Beta (was Dev)",
L"Beta",
L"Stable",
};
@@ -106,6 +109,11 @@
update_branch = update_branch.substr(0, index);
}
}
+ // The 1.1-dev channel has been deprecated and all users have been
+ // logically moved to the Beta channel. If we find that token, we
+ // just declare the user on the Beta channel.
+ if (update_branch == kBranchStrings[OLD_DEV_BRANCH])
+ update_branch = kBranchStrings[BETA_BRANCH];
}
}
« no previous file with comments | « no previous file | tools/channel_changer/channel_changer.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698