summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js')
-rw-r--r--chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js27
1 files changed, 22 insertions, 5 deletions
diff --git a/chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js
index a6082766703..d5b122bf99c 100644
--- a/chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chromium/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -4,22 +4,22 @@
/**
* @fileoverview
- * 'cr-settings-privacy-page' is the settings page containing privacy and
+ * 'settings-privacy-page' is the settings page containing privacy and
* security settings.
*
* Example:
*
* <iron-animated-pages>
- * <cr-settings-privacy-page prefs="{{prefs}}">
- * </cr-settings-privacy-page>
+ * <settings-privacy-page prefs="{{prefs}}">
+ * </settings-privacy-page>
* ... other pages ...
* </iron-animated-pages>
*
* @group Chrome Settings Elements
- * @element cr-settings-privacy-page
+ * @element settings-privacy-page
*/
Polymer({
- is: 'cr-settings-privacy-page',
+ is: 'settings-privacy-page',
properties: {
/**
@@ -37,6 +37,18 @@ Polymer({
type: Object,
notify: true,
},
+
+ /**
+ * The origin selected by the user.
+ */
+ originSelected: {
+ type: String,
+ observer: 'onSelectedOriginChanged_',
+ }
+ },
+
+ ready: function() {
+ this.ContentSettingsTypes = settings.ContentSettingsTypes;
},
/** @private */
@@ -53,4 +65,9 @@ Polymer({
onClearBrowsingDataTap_: function() {
this.$.pages.setSubpageChain(['clear-browsing-data']);
},
+
+ onSelectedOriginChanged_: function() {
+ this.$.pages.setSubpageChain(
+ ['site-settings', 'site-settings-category', 'site-details']);
+ },
});