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

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

Issue 2538043006: Settings: About: Fix cros channel info. (Closed)
Patch Set: Rebase 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/about_page.js
diff --git a/chrome/browser/resources/settings/about_page/about_page.js b/chrome/browser/resources/settings/about_page/about_page.js
index 966bee8e2b605b9cc5428fc902e22d02d78e5ed7..a4439d6688a039c848b304e4e607088627506b90 100644
--- a/chrome/browser/resources/settings/about_page/about_page.js
+++ b/chrome/browser/resources/settings/about_page/about_page.js
@@ -63,13 +63,9 @@ Polymer({
this.targetChannel_ = e.detail;
}.bind(this));
- Promise.all([
- this.aboutBrowserProxy_.getCurrentChannel(),
- this.aboutBrowserProxy_.getTargetChannel(),
- ]).then(function(channels) {
- this.currentChannel_ = channels[0];
- this.targetChannel_ = channels[1];
-
+ this.aboutBrowserProxy_.getChannelInfo().then(function(info) {
+ this.currentChannel_ = info.currentChannel;
+ this.targetChannel_ = info.targetChannel;
this.startListening_();
}.bind(this));

Powered by Google App Engine
This is Rietveld 408576698