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

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: revise test 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.historyDeleted();
221 },
222
223 /**
217 * Update sign in state of synced device manager after user logs in or out. 224 * Update sign in state of synced device manager after user logs in or out.
218 * @param {boolean} isUserSignedIn 225 * @param {boolean} isUserSignedIn
219 */ 226 */
220 updateSignInState: function(isUserSignedIn) { 227 updateSignInState: function(isUserSignedIn) {
221 var syncedDeviceManagerElem = 228 var syncedDeviceManagerElem =
222 /** @type {HistorySyncedDeviceManagerElement} */this 229 /** @type {HistorySyncedDeviceManagerElement} */this
223 .$$('history-synced-device-manager'); 230 .$$('history-synced-device-manager');
224 if (syncedDeviceManagerElem) 231 if (syncedDeviceManagerElem)
225 syncedDeviceManagerElem.updateSignInState(isUserSignedIn); 232 syncedDeviceManagerElem.updateSignInState(isUserSignedIn);
226 }, 233 },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 return selectedPage; 283 return selectedPage;
277 }, 284 },
278 285
279 /** @private */ 286 /** @private */
280 closeDrawer_: function() { 287 closeDrawer_: function() {
281 var drawer = this.$$('#drawer'); 288 var drawer = this.$$('#drawer');
282 if (drawer) 289 if (drawer)
283 drawer.close(); 290 drawer.close();
284 }, 291 },
285 }); 292 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698