Commit 393dbb34 authored by Yue Li's avatar Yue Li Committed by Commit Bot

Update value prop screen to use new endpoint

Bug: 809239, b/73666094
Test: Local build
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ib8d57872b432f760f3f108fe815191004808b0ce
Reviewed-on: https://chromium-review.googlesource.com/1037781
Commit-Queue: Yue Li <updowndota@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555254}
parent bd5c7861
......@@ -32,7 +32,7 @@ Polymer({
defaultUrl: {
type: String,
value:
'https://www.gstatic.com/opa-chromeos/oobe/en/value_proposition.html',
'https://www.gstatic.com/opa-android/oobe/a02187e41eed9e42/v1_omni_en_us.html',
},
},
......@@ -140,8 +140,9 @@ Polymer({
reloadValueProp: function() {
this.valuePropError_ = false;
this.headerReceived_ = false;
this.valueView_.src = 'https://www.gstatic.com/opa-chromeos/oobe/' +
this.locale + '/value_proposition.html';
this.valueView_.src =
'https://www.gstatic.com/opa-android/oobe/a02187e41eed9e42/v1_omni_' +
this.locale + '.html';
window.clearTimeout(this.animationTimeout_);
window.clearTimeout(this.loadingTimeout_);
......@@ -223,8 +224,7 @@ Polymer({
} else {
this.onValueViewErrorOccurred();
}
}
if (details.statusCode != '200') {
} else if (details.statusCode != '200') {
this.onValueViewErrorOccurred();
}
},
......@@ -235,6 +235,7 @@ Polymer({
onShow: function() {
var requestFilter = {urls: ['<all_urls>'], types: ['main_frame']};
this.valueView_ = this.$['value-prop-view'];
this.locale = this.locale.replace('-', '_').toLowerCase();
if (!this.initialized_) {
this.valueView_.request.onErrorOccurred.addListener(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment