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

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

Issue 1136193002: Add a menu item for configuring configurable providers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 7 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/providers_model.js
diff --git a/ui/file_manager/file_manager/foreground/js/providers_model.js b/ui/file_manager/file_manager/foreground/js/providers_model.js
index 9b4a937cab2fcc89d85ccb9760b8f3834c661735..49f3fe43cd9410b6bb0cd9102ddf68bf641bd9c3 100644
--- a/ui/file_manager/file_manager/foreground/js/providers_model.js
+++ b/ui/file_manager/file_manager/foreground/js/providers_model.js
@@ -145,3 +145,15 @@ ProvidersModel.prototype.requestMount = function(extensionId) {
console.error(chrome.runtime.lastError.message);
});
};
+
+/**
+ * @param {string} extensionId
+ */
+ProvidersModel.prototype.requestConfigure = function(extensionId) {
+ chrome.fileManagerPrivate.configureProvidedFileSystem(
+ assert(extensionId),
+ function() {
+ if (chrome.runtime.lastError)
+ console.error(chrome.runtime.lastError.message);
+ });
+};

Powered by Google App Engine
This is Rietveld 408576698