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

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

Issue 2262993002: Fixes deleting history when there is only one item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes removing of single child top level history items. 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_list_behavior.js
diff --git a/chrome/browser/resources/md_history/history_list_behavior.js b/chrome/browser/resources/md_history/history_list_behavior.js
index 230139f0f6593d0a306ad753f864088a55f16d7a..0a6e84e55e92ea07ced7bfa8a1138cb71468a9c1 100644
--- a/chrome/browser/resources/md_history/history_list_behavior.js
+++ b/chrome/browser/resources/md_history/history_list_behavior.js
@@ -175,7 +175,7 @@ var HistoryListBehavior = {
}
}.bind(this));
- if (array.length == 0)
+ if (array.length == 0 && node.currentPath.indexOf('.') != -1)
return true;
// notifySplices gives better performance than individually splicing as it
« no previous file with comments | « chrome/browser/resources/md_history/app.crisper.js ('k') | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698