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

Unified Diff: chrome/browser/resources/history/history.js

Issue 301223009: Fix chrome://history on Android (check whether element is present first). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = '';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698