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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/banners.js

Issue 1304883005: Make |context| passed to queryRequiredElement optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops Created 5 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: ui/file_manager/file_manager/foreground/js/ui/banners.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/banners.js b/ui/file_manager/file_manager/foreground/js/ui/banners.js
index 817acc805da20b44f0750731e805b855734a7463..cf6c4d9ba782af0ae78a07ad6cbb052db02959ba 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/banners.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/banners.js
@@ -171,7 +171,7 @@ Banners.prototype.prepareAndShowWelcomeBanner_ = function(type, messageId) {
this.showWelcomeBanner_(type);
var container = queryRequiredElement(
- this.document_, '.drive-welcome.' + type);
+ '.drive-welcome.' + type, this.document_);
if (container.firstElementChild)
return; // Do not re-create.

Powered by Google App Engine
This is Rietveld 408576698