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

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

Issue 2592593002: Remove the flag to disable Quick View, since it has been released. (Closed)
Patch Set: Format. Created 4 years 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
« chrome/browser/about_flags.cc ('K') | « chromeos/chromeos_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index ea40548ec0f2e7929869891d20edc4b89899e9cc..7f371735442be60e2cdb229200f47115f220e37b 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -549,23 +549,16 @@ FileManager.prototype = /** @struct */ {
(queryRequiredElement('#quick-view'));
var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ (
this.directoryModel_.getFileListSelection());
- chrome.commandLinePrivate.hasSwitch(
- 'disable-files-quick-view', function(disabled) {
- if (!disabled) {
- this.quickViewUma_ = new QuickViewUma(
- assert(this.volumeManager_), assert(this.dialogType));
- this.quickViewController_ = new QuickViewController(
- quickView, assert(this.metadataModel_),
- assert(this.selectionHandler_),
- assert(this.ui_.listContainer), assert(this.quickViewModel_),
- assert(this.taskController_),
- fileListSelectionModel,
- assert(this.quickViewUma_));
- this.metadataBoxController_ = new MetadataBoxController(
- this.metadataModel_, quickView.getFilesMetadataBox(),
- quickView, this.quickViewModel_, this.fileMetadataFormatter_);
- }
- }.bind(this));
+ this.quickViewUma_ =
+ new QuickViewUma(assert(this.volumeManager_), assert(this.dialogType));
+ this.quickViewController_ = new QuickViewController(
+ quickView, assert(this.metadataModel_), assert(this.selectionHandler_),
+ assert(this.ui_.listContainer), assert(this.quickViewModel_),
+ assert(this.taskController_), fileListSelectionModel,
+ assert(this.quickViewUma_));
+ this.metadataBoxController_ = new MetadataBoxController(
+ this.metadataModel_, quickView.getFilesMetadataBox(), quickView,
+ this.quickViewModel_, this.fileMetadataFormatter_);
if (this.dialogType === DialogType.FULL_PAGE) {
importer.importEnabled().then(
« chrome/browser/about_flags.cc ('K') | « chromeos/chromeos_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698