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

Unified Diff: chrome/browser/resources/md_history/app.crisper.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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_list_behavior.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.crisper.js
diff --git a/chrome/browser/resources/md_history/app.crisper.js b/chrome/browser/resources/md_history/app.crisper.js
index 152f64d5ccdf54377af9da692b566dc9e55eaddc..d61fd89151bb20409e955ba97b01d77c6166a475 100644
--- a/chrome/browser/resources/md_history/app.crisper.js
+++ b/chrome/browser/resources/md_history/app.crisper.js
@@ -6847,7 +6847,7 @@ var HistoryListBehavior = {
});
}
}.bind(this));
- if (array.length == 0) return true;
+ if (array.length == 0 && node.currentPath.indexOf('.') != -1) return true;
this.notifySplices(node.currentPath, splices);
return false;
},
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_list_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698