Index: chrome/browser/resources/file_manager/js/photo/gallery.js |
diff --git a/chrome/browser/resources/file_manager/js/photo/gallery.js b/chrome/browser/resources/file_manager/js/photo/gallery.js |
index c79765928a1cfcdd171066ed78b8f0bae20f4082..1e95b2861feeb0c9386fedb2f4f00402dc7f83a9 100644 |
--- a/chrome/browser/resources/file_manager/js/photo/gallery.js |
+++ b/chrome/browser/resources/file_manager/js/photo/gallery.js |
@@ -249,6 +249,7 @@ Gallery.prototype.initDom_ = function() { |
util.createChild(closeButton); |
closeButton.addEventListener('click', this.onClose_.bind(this)); |
+ this.header_ = util.createChild(this.container_, 'header tool dimmable'); |
this.toolbar_ = util.createChild(this.container_, 'toolbar tool dimmable'); |
this.filenameSpacer_ = util.createChild(this.toolbar_, 'filename-spacer'); |
@@ -310,6 +311,9 @@ Gallery.prototype.initDom_ = function() { |
this.selectionModel_.addEventListener('change', this.onSelection_.bind(this)); |
this.slideMode_.addEventListener('useraction', this.onUserAction_.bind(this)); |
+ |
+ if (util.platform.newUI()) |
+ document.body.setAttribute('new-ui', ''); |
}; |
/** |