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

Unified Diff: chrome/browser/resources/settings/about_page/channel_switcher_dialog.js

Issue 2538043006: Settings: About: Fix cros channel info. (Closed)
Patch Set: . Created 4 years 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
Index: chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
diff --git a/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js b/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
index 14b01f6677b5be6df406e3ea2798c0417a497af0..e259634a94279572d29d606678f1485587eda80b 100644
--- a/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
+++ b/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
@@ -21,7 +21,7 @@ Polymer({
},
/** @private {!BrowserChannel} */
- currentChannel_: String,
+ targetChannel_: String,
/**
* Controls which of the two action buttons is visible.
@@ -46,9 +46,9 @@ Polymer({
ready: function() {
this.browserProxy_ = settings.AboutPageBrowserProxyImpl.getInstance();
- this.browserProxy_.getCurrentChannel().then(function(channel) {
- this.currentChannel_ = channel;
- // Pre-populate radio group with current channel.
+ this.browserProxy_.getTargetChannel().then(function(channel) {
+ this.targetChannel_ = channel;
+ // Pre-populate radio group with target channel.
this.$$('paper-radio-group').select(channel);
}.bind(this));
},
@@ -118,14 +118,14 @@ Polymer({
onChannelSelectionChanged_: function() {
var selectedChannel = this.$$('paper-radio-group').selected;
- if (selectedChannel == this.currentChannel_) {
+ if (selectedChannel == this.targetChannel_) {
this.shouldShowButtons_ = null;
this.warning_ = null;
return;
}
if (settings.isTargetChannelMoreStable(
- this.currentChannel_, selectedChannel)) {
+ this.targetChannel_, selectedChannel)) {
dpapad 2016/12/02 23:27:12 I am confused by the currentChannel -> targetChann
dpapad 2016/12/02 23:29:43 Also see equivalent logic in the old page, https:/
stevenjb 2016/12/02 23:54:39 We want to show the *target* channel as selected i
dpapad 2016/12/03 00:02:32 Ok. In case it helps, this is my understanding (wh
stevenjb 2016/12/06 20:38:02 OK, I think I have the logic correct now. We do ne
if (loadTimeData.getBoolean('aboutEnterpriseManaged')) {
this.updateWarning_(
'aboutDelayedWarningTitle',

Powered by Google App Engine
This is Rietveld 408576698