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

Unified Diff: chrome/browser/resources/md_history/history_list.js

Issue 2764803002: MD History: Prevent flickering of 'no search results' message (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/resources/md_history/history_list.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/history_list.js
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js
index 85dafe0e0be5770d28b62ff5e73c4748cf6430ca..d850ad634a2ff36518f0b7c289866489153d2a56 100644
--- a/chrome/browser/resources/md_history/history_list.js
+++ b/chrome/browser/resources/md_history/history_list.js
@@ -460,14 +460,10 @@ Polymer({
/**
* @param {string} searchedTerm
- * @param {boolean} isLoading
* @return {string}
* @private
*/
- noResultsMessage_: function(searchedTerm, isLoading) {
- if (isLoading)
- return '';
-
+ noResultsMessage_: function(searchedTerm) {
var messageId = searchedTerm !== '' ? 'noSearchResults' : 'noResults';
return loadTimeData.getString(messageId);
},
« no previous file with comments | « chrome/browser/resources/md_history/history_list.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698