| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-privacy-page' is the settings page containing privacy and | 7 * 'settings-privacy-page' is the settings page containing privacy and |
| 8 * security settings. | 8 * security settings. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 currentRoute: { | 25 currentRoute: { |
| 26 type: Object, | 26 type: Object, |
| 27 notify: true, | 27 notify: true, |
| 28 }, | 28 }, |
| 29 | 29 |
| 30 /** @private */ | 30 /** @private */ |
| 31 showClearBrowsingDataDialog_: { | 31 showClearBrowsingDataDialog_: { |
| 32 computed: 'computeShowClearBrowsingDataDialog_(currentRoute)', | 32 computed: 'computeShowClearBrowsingDataDialog_(currentRoute)', |
| 33 type: Boolean, | 33 type: Boolean, |
| 34 }, | 34 }, |
| 35 |
| 36 /** |
| 37 * Dictionary defining page visibility. |
| 38 * @type {!PrivacyPageVisibility} |
| 39 */ |
| 40 pageVisibility: Object, |
| 35 }, | 41 }, |
| 36 | 42 |
| 37 ready: function() { | 43 ready: function() { |
| 38 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 44 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
| 39 }, | 45 }, |
| 40 | 46 |
| 41 /** @suppress {missingProperties} */ | 47 /** @suppress {missingProperties} */ |
| 42 attached: function() { | 48 attached: function() { |
| 43 settings.main.rendered.then(function() { | 49 settings.main.rendered.then(function() { |
| 44 if (this.showClearBrowsingDataDialog_) { | 50 if (this.showClearBrowsingDataDialog_) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 return; | 101 return; |
| 96 | 102 |
| 97 this.currentRoute = { | 103 this.currentRoute = { |
| 98 page: 'advanced', | 104 page: 'advanced', |
| 99 section: 'privacy', | 105 section: 'privacy', |
| 100 subpage: [], | 106 subpage: [], |
| 101 // Drop dialog key. | 107 // Drop dialog key. |
| 102 }; | 108 }; |
| 103 }, | 109 }, |
| 104 }); | 110 }); |
| OLD | NEW |