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

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

Issue 2434823002: arc: Add Goolge Privacy Policy link to OptIn UI. (Closed)
Patch Set: Created 4 years, 2 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
Index: chrome/browser/resources/chromeos/arc_support/playstore.js
diff --git a/chrome/browser/resources/chromeos/arc_support/playstore.js b/chrome/browser/resources/chromeos/arc_support/playstore.js
index 2eda8bee7050c96432c1aacbf3a5511b5e4dac94..dc6e2172adc2e4d6de892449aff037a563d38682 100644
--- a/chrome/browser/resources/chromeos/arc_support/playstore.js
+++ b/chrome/browser/resources/chromeos/arc_support/playstore.js
@@ -112,5 +112,19 @@ function formatDocument() {
document.body.hidden = true;
}
+/**
+ * Searches in footer for a privacy policy link. Returns default if not found.
+ */
+function getPrivacyPolicyLink() {
+ var links = document.getElementById('play-footer').getElementsByTagName('a');
khmel 2016/10/19 16:14:41 Privacy Policy also has similar structure for zone
+ for (var i = 0; i < links.length; ++i) {
+ var targetURL = links[i].href;
+ if (targetURL.endsWith('/policies/privacy/')) {
+ return targetURL;
+ }
+ }
+ return 'https://www.google.com/policies/privacy/';
+}
+
formatDocument();
processLangZoneTerms();

Powered by Google App Engine
This is Rietveld 408576698