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

Side by Side Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 2116123002: MD Settings: fix clear browsing data dialog (again) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698