Index: chrome/browser/resources/history.js |
diff --git a/chrome/browser/resources/history.js b/chrome/browser/resources/history.js |
index 183f42c6aa8514bfc7aa6b72d75cdd0d86bf1fbf..e06d5edde9b45f43cfbdbc3bf35a906f977f1174 100644 |
--- a/chrome/browser/resources/history.js |
+++ b/chrome/browser/resources/history.js |
@@ -475,7 +475,8 @@ function HistoryView(model) { |
window.onresize = function() { |
self.updateEntryAnchorWidth_(); |
}; |
- self.updateEditControls_(); |
+ this.updateEditControls_(); |
+ this.editButtonTd_.hidden = true; |
this.boundUpdateRemoveButton_ = function(e) { |
return self.updateRemoveButton_(e); |
@@ -583,6 +584,9 @@ HistoryView.prototype.setPageRendered_ = function(page) { |
* Update the page with results. |
*/ |
HistoryView.prototype.displayResults_ = function() { |
+ // Hide the Edit Button if there are no history results to display. |
+ this.editButtonTd_.hidden = !this.model_.getSize(); |
+ |
var results = this.model_.getNumberedRange( |
this.pageIndex_ * RESULTS_PER_PAGE, |
this.pageIndex_ * RESULTS_PER_PAGE + RESULTS_PER_PAGE); |