| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 /** @private */ | 73 /** @private */ |
| 74 onSiteSettingsTap_: function() { | 74 onSiteSettingsTap_: function() { |
| 75 var pages = /** @type {!SettingsAnimatedPagesElement} */(this.$.pages); | 75 var pages = /** @type {!SettingsAnimatedPagesElement} */(this.$.pages); |
| 76 pages.setSubpageChain(['site-settings']); | 76 pages.setSubpageChain(['site-settings']); |
| 77 }, | 77 }, |
| 78 | 78 |
| 79 /** @private */ | 79 /** @private */ |
| 80 onClearBrowsingDataTap_: function() { | 80 onClearBrowsingDataTap_: function() { |
| 81 this.currentRoute = { | 81 this.currentRoute = { |
| 82 page: this.currentRoute.page, | 82 page: 'advanced', |
| 83 section: this.currentRoute.section, | 83 section: 'privacy', |
| 84 subpage: this.currentRoute.subpage, | 84 subpage: [], |
| 85 dialog: 'clear-browsing-data', | 85 dialog: 'clear-browsing-data', |
| 86 }; | 86 }; |
| 87 }, | 87 }, |
| 88 | 88 |
| 89 /** | 89 /** |
| 90 * @param {!Event} event | 90 * @param {!Event} event |
| 91 * @private | 91 * @private |
| 92 */ | 92 */ |
| 93 onIronOverlayClosed_: function(event) { | 93 onIronOverlayClosed_: function(event) { |
| 94 if (Polymer.dom(event).rootTarget.tagName != 'CR-DIALOG') | 94 if (Polymer.dom(event).rootTarget.tagName != 'CR-DIALOG') |
| 95 return; | 95 return; |
| 96 | 96 |
| 97 this.currentRoute = { | 97 this.currentRoute = { |
| 98 page: this.currentRoute.page, | 98 page: 'advanced', |
| 99 section: this.currentRoute.section, | 99 section: 'privacy', |
| 100 subpage: this.currentRoute.subpage, | 100 subpage: [], |
| 101 // Drop dialog key. | 101 // Drop dialog key. |
| 102 }; | 102 }; |
| 103 }, | 103 }, |
| 104 }); | 104 }); |
| OLD | NEW |