| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |