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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index 05de2358758b1043b532324fa538c39f21026ca9..4f6653302dece673c0911af84f4bfc5ced38c299 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -207,6 +207,15 @@ Polymer({
},
/**
+ * Called when browsing data is cleared.
+ */
+ historyDeleted: function() {
+ this.$['history'].reloadingList();
+ // Call into list-container to restore search state.
+ this.$['history'].queryHistory(false);
+ },
+
+ /**
* Update sign in state of synced device manager after user logs in or out.
* @param {boolean} isUserSignedIn
*/
« 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