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

Unified Diff: chrome/browser/resources/md_history/history.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: consider search term 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history.js
diff --git a/chrome/browser/resources/md_history/history.js b/chrome/browser/resources/md_history/history.js
index 0c456c7dfb77adc715cbb04618f4224bb7634294..c21eb1341b0a6adefdd5616827ff354159da7db4 100644
--- a/chrome/browser/resources/md_history/history.js
+++ b/chrome/browser/resources/md_history/history.js
@@ -85,6 +85,11 @@ function setForeignSessions(sessionList, isTabSyncEnabled) {
* Called when the history is deleted by someone else.
*/
function historyDeleted() {
+ waitForAppUpgrade().then(function() {
+ // Call into list-container to restore search state.
+ /** @type {HistoryListContainerElement} */($('history-app').$['history'])
Dan Beam 2016/08/04 00:30:46 we really need a lint rule about thing.$.localId
tsergeant 2016/08/04 01:25:55 Yup, please avoid directly accessing local DOM of
Dan Beam 2016/08/04 03:23:44 https://codereview.chromium.org/2209053002/
lshang 2016/08/05 03:39:03 Done.
+ .queryHistory(false);
+ });
}
/**

Powered by Google App Engine
This is Rietveld 408576698