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: { |
| 41 type: Object, |
| 42 }, |
35 }, | 43 }, |
36 | 44 |
37 ready: function() { | 45 ready: function() { |
38 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 46 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
39 }, | 47 }, |
40 | 48 |
41 /** @suppress {missingProperties} */ | 49 /** @suppress {missingProperties} */ |
42 attached: function() { | 50 attached: function() { |
43 settings.main.rendered.then(function() { | 51 settings.main.rendered.then(function() { |
44 if (this.showClearBrowsingDataDialog_) { | 52 if (this.showClearBrowsingDataDialog_) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 return; | 103 return; |
96 | 104 |
97 this.currentRoute = { | 105 this.currentRoute = { |
98 page: 'advanced', | 106 page: 'advanced', |
99 section: 'privacy', | 107 section: 'privacy', |
100 subpage: [], | 108 subpage: [], |
101 // Drop dialog key. | 109 // Drop dialog key. |
102 }; | 110 }; |
103 }, | 111 }, |
104 }); | 112 }); |
OLD | NEW |