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

Unified Diff: ui/file_manager/file_manager/background/js/volume_manager.js

Issue 807583003: Revert of Include MTP devices in Cloud Import happiness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: ui/file_manager/file_manager/background/js/volume_manager.js
diff --git a/ui/file_manager/file_manager/background/js/volume_manager.js b/ui/file_manager/file_manager/background/js/volume_manager.js
index 25d210bfa07ad2c096dca8f71b2adbeab9c98896..a3f82360cdd7b68213a030043281bc7375ea8d97 100644
--- a/ui/file_manager/file_manager/background/js/volume_manager.js
+++ b/ui/file_manager/file_manager/background/js/volume_manager.js
@@ -160,6 +160,15 @@
get hasMedia() {
return this.hasMedia_;
}
+};
+
+/**
+ * Provides short hand checking of volume type.
+ * @param {VolumeManagerCommon.VolumeType} type
+ * @return {boolean} True if the volume is of the specified type.
+ */
+VolumeInfo.prototype.isType = function(type) {
+ return type === this.volumeType_;
};
/**

Powered by Google App Engine
This is Rietveld 408576698