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

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: fix test and vulcanize 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 .$$('history-synced-device-manager'); 207 .$$('history-synced-device-manager');
208 if (syncedDeviceManagerElem) 208 if (syncedDeviceManagerElem)
209 syncedDeviceManagerElem.tabSyncDisabled(); 209 syncedDeviceManagerElem.tabSyncDisabled();
210 return; 210 return;
211 } 211 }
212 212
213 this.set('queryResult_.sessionList', sessionList); 213 this.set('queryResult_.sessionList', sessionList);
214 }, 214 },
215 215
216 /** 216 /**
217 * Called when browsing data is cleared.
218 */
219 historyDeleted: function() {
220 this.$['history'].clearingHistory();
tsergeant 2016/08/17 06:58:28 Nit: this.$.history
lshang 2016/08/18 08:41:54 Done.
221 // Call into list-container to restore search state.
222 this.$['history'].queryHistory(false);
tsergeant 2016/08/17 06:58:28 Maybe move this call into the clearHistory() metho
lshang 2016/08/18 08:41:54 Done.
223 },
224
225 /**
217 * Update sign in state of synced device manager after user logs in or out. 226 * Update sign in state of synced device manager after user logs in or out.
218 * @param {boolean} isUserSignedIn 227 * @param {boolean} isUserSignedIn
219 */ 228 */
220 updateSignInState: function(isUserSignedIn) { 229 updateSignInState: function(isUserSignedIn) {
221 var syncedDeviceManagerElem = 230 var syncedDeviceManagerElem =
222 /** @type {HistorySyncedDeviceManagerElement} */this 231 /** @type {HistorySyncedDeviceManagerElement} */this
223 .$$('history-synced-device-manager'); 232 .$$('history-synced-device-manager');
224 if (syncedDeviceManagerElem) 233 if (syncedDeviceManagerElem)
225 syncedDeviceManagerElem.updateSignInState(isUserSignedIn); 234 syncedDeviceManagerElem.updateSignInState(isUserSignedIn);
226 }, 235 },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 return selectedPage; 285 return selectedPage;
277 }, 286 },
278 287
279 /** @private */ 288 /** @private */
280 closeDrawer_: function() { 289 closeDrawer_: function() {
281 var drawer = this.$$('#drawer'); 290 var drawer = this.$$('#drawer');
282 if (drawer) 291 if (drawer)
283 drawer.close(); 292 drawer.close();
284 }, 293 },
285 }); 294 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | chrome/browser/resources/md_history/history_list.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698