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

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: 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 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 9ccc9ceccbf6ecf897375e57b03058517e9ceae6..0b64b6b25add74f4087da16b3ea65452ff46f06e 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -214,6 +214,15 @@ Polymer({
},
/**
+ * Called when browsing data is cleared.
+ */
+ historyDeleted: function() {
+ this.$['history'].clearingHistory();
tsergeant 2016/08/17 06:58:28 Nit: this.$.history
lshang 2016/08/18 08:41:54 Done.
+ // Call into list-container to restore search state.
+ 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.
+ },
+
+ /**
* 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/app.crisper.js » ('j') | chrome/browser/resources/md_history/history_list.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698