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

Side by Side Diff: chrome/browser/resources/md_history/app.js

Issue 2200233003: MD History: Refresh the list when clearing browsing data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Polymer({ 5 Polymer({
6 is: 'history-app', 6 is: 'history-app',
7 7
8 properties: { 8 properties: {
9 showSidebarFooter: Boolean, 9 showSidebarFooter: Boolean,
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 * @param {boolean} isTabSyncEnabled Is tab sync enabled for this profile? 200 * @param {boolean} isTabSyncEnabled Is tab sync enabled for this profile?
201 */ 201 */
202 setForeignSessions: function(sessionList, isTabSyncEnabled) { 202 setForeignSessions: function(sessionList, isTabSyncEnabled) {
203 if (!isTabSyncEnabled) 203 if (!isTabSyncEnabled)
204 return; 204 return;
205 205
206 this.set('queryResult_.sessionList', sessionList); 206 this.set('queryResult_.sessionList', sessionList);
207 }, 207 },
208 208
209 /** 209 /**
210 * Called when browsing data is cleared.
211 */
212 historyDeleted: function() {
213 this.$['history'].reloadingList();
214 // Call into list-container to restore search state.
215 this.$['history'].queryHistory(false);
216 },
217
218 /**
210 * Update sign in state of synced device manager after user logs in or out. 219 * Update sign in state of synced device manager after user logs in or out.
211 * @param {boolean} isUserSignedIn 220 * @param {boolean} isUserSignedIn
212 */ 221 */
213 updateSignInState: function(isUserSignedIn) { 222 updateSignInState: function(isUserSignedIn) {
214 var syncedDeviceManagerElem = 223 var syncedDeviceManagerElem =
215 /** @type {HistorySyncedDeviceManagerElement} */this 224 /** @type {HistorySyncedDeviceManagerElement} */this
216 .$$('history-synced-device-manager'); 225 .$$('history-synced-device-manager');
217 if (syncedDeviceManagerElem) 226 if (syncedDeviceManagerElem)
218 syncedDeviceManagerElem.updateSignInState(isUserSignedIn); 227 syncedDeviceManagerElem.updateSignInState(isUserSignedIn);
219 }, 228 },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 return selectedPage; 278 return selectedPage;
270 }, 279 },
271 280
272 /** @private */ 281 /** @private */
273 closeDrawer_: function() { 282 closeDrawer_: function() {
274 var drawer = this.$$('#drawer'); 283 var drawer = this.$$('#drawer');
275 if (drawer) 284 if (drawer)
276 drawer.close(); 285 drawer.close();
277 }, 286 },
278 }); 287 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history.js » ('j') | chrome/browser/resources/md_history/history_list.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698