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

Unified Diff: chrome/browser/resources/chromeos/arc_support/background.js

Issue 2449393002: Fix losing selected language on ToS page reloading. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/arc_support/background.js
diff --git a/chrome/browser/resources/chromeos/arc_support/background.js b/chrome/browser/resources/chromeos/arc_support/background.js
index e4d1d5d6c5f28bab67c08308d766f137f6672030..f0e45f6fabd0b53f333a8a9c8736e5d629548ab4 100644
--- a/chrome/browser/resources/chromeos/arc_support/background.js
+++ b/chrome/browser/resources/chromeos/arc_support/background.js
@@ -336,7 +336,14 @@ class TermsOfServicePage {
// If there already is inflight loading task, do nothing.
return;
}
- this.termsView_.src = 'https://play.google.com/about/play-terms.html';
+
+ if (this.termsView_.src) {
+ // This is reloading the page, typically clicked RETRY on error page.
+ this.termsView_.reload();
+ } else {
+ // This is first loading case so set the URL explicitly.
+ this.termsView_.src = 'https://play.google.com/about/play-terms.html';
+ }
}
/** Called when the terms-view starts to be loaded. */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698