| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Type of a Files.app's instance launch. | 6 * Type of a Files.app's instance launch. |
| 7 * @enum {number} | 7 * @enum {number} |
| 8 */ | 8 */ |
| 9 var LaunchType = { | 9 var LaunchType = { |
| 10 ALWAYS_CREATE: 0, | 10 ALWAYS_CREATE: 0, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 * @type {!DriveSyncHandler} | 72 * @type {!DriveSyncHandler} |
| 73 */ | 73 */ |
| 74 this.driveSyncHandler = new DriveSyncHandler(this.progressCenter); | 74 this.driveSyncHandler = new DriveSyncHandler(this.progressCenter); |
| 75 | 75 |
| 76 /** | 76 /** |
| 77 * Provides support for scaning media devices as part of Cloud Import. | 77 * Provides support for scaning media devices as part of Cloud Import. |
| 78 * @type {!importer.MediaScanner} | 78 * @type {!importer.MediaScanner} |
| 79 */ | 79 */ |
| 80 this.mediaScanner = new importer.DefaultMediaScanner( | 80 this.mediaScanner = new importer.DefaultMediaScanner( |
| 81 importer.createMetadataHashcode, | 81 importer.createMetadataHashcode, |
| 82 this.historyLoader, | 82 importer.DispositionChecker.createChecker( |
| 83 this.historyLoader, |
| 84 this.tracker), |
| 83 importer.DefaultDirectoryWatcher.create); | 85 importer.DefaultDirectoryWatcher.create); |
| 84 | 86 |
| 85 /** | 87 /** |
| 86 * Handles importing of user media (e.g. photos, videos) from removable | 88 * Handles importing of user media (e.g. photos, videos) from removable |
| 87 * devices. | 89 * devices. |
| 88 * @type {!importer.MediaImportHandler} | 90 * @type {!importer.MediaImportHandler} |
| 89 */ | 91 */ |
| 90 this.mediaImportHandler = | 92 this.mediaImportHandler = new importer.MediaImportHandler( |
| 91 new importer.MediaImportHandler( | 93 this.progressCenter, |
| 92 this.progressCenter, | 94 this.historyLoader, |
| 93 this.historyLoader, | 95 this.tracker); |
| 94 new importer.DriveDuplicateFinder.Factory(), | |
| 95 this.tracker); | |
| 96 | 96 |
| 97 /** | 97 /** |
| 98 * Promise of string data. | 98 * Promise of string data. |
| 99 * @private {!Promise} | 99 * @private {!Promise} |
| 100 */ | 100 */ |
| 101 this.initializationPromise_ = this.startInitialization_(); | 101 this.initializationPromise_ = this.startInitialization_(); |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * String assets. | 104 * String assets. |
| 105 * @type {Object<string, string>} | 105 * @type {Object<string, string>} |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // NOTE: This must be called before FileBrowserBackground is instantiated. | 631 // NOTE: This must be called before FileBrowserBackground is instantiated. |
| 632 // TODO(kenobi): Revisit this once users have the ability to do this themselves. | 632 // TODO(kenobi): Revisit this once users have the ability to do this themselves. |
| 633 metrics.clearUserId(); | 633 metrics.clearUserId(); |
| 634 | 634 |
| 635 /** | 635 /** |
| 636 * Singleton instance of Background. | 636 * Singleton instance of Background. |
| 637 * NOTE: This must come after the call to metrics.clearUserId. | 637 * NOTE: This must come after the call to metrics.clearUserId. |
| 638 * @type {FileBrowserBackground} | 638 * @type {FileBrowserBackground} |
| 639 */ | 639 */ |
| 640 window.background = new FileBrowserBackground(); | 640 window.background = new FileBrowserBackground(); |
| OLD | NEW |