| Index: chrome/browser/resources/history/history.js
|
| diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
|
| index 3a73426aa18ea28747fd67c6939a79e60c90cc38..8a7c30648326da139495bada3d3cf6979be71dda 100644
|
| --- a/chrome/browser/resources/history/history.js
|
| +++ b/chrome/browser/resources/history/history.js
|
| @@ -996,7 +996,8 @@ HistoryView.prototype.positionNotificationBar = function() {
|
| * @private
|
| */
|
| HistoryView.prototype.clear_ = function() {
|
| - if ($('alertOverlay').classList.contains('showing'))
|
| + var alertOverlay = $('alertOverlay');
|
| + if (alertOverlay && alertOverlay.classList.contains('showing'))
|
| hideConfirmationOverlay();
|
|
|
| this.resultDiv_.textContent = '';
|
|
|