summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorfukino <fukino@chromium.org>2015-04-23 21:08:22 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-24 04:08:34 +0000
commitd32919d3f8274b051f6d506fe002c6c43f5185e4 (patch)
tree99c89fa243cf6001f98e5f7035d7acf9c94b4898 /ui
parent0b3b788227da8865280c19eb2aadddfe03ff71b4 (diff)
downloadchromium_src-d32919d3f8274b051f6d506fe002c6c43f5185e4.zip
chromium_src-d32919d3f8274b051f6d506fe002c6c43f5185e4.tar.gz
chromium_src-d32919d3f8274b051f6d506fe002c6c43f5185e4.tar.bz2
Fix closure compiling error of file manager.
BUG=none TEST=run closure compiler Review URL: https://codereview.chromium.org/1104463004 Cr-Commit-Position: refs/heads/master@{#326737}
Diffstat (limited to 'ui')
-rw-r--r--ui/file_manager/file_manager/foreground/js/file_manager_commands.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
index 74c8dc4..743fb67 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
@@ -1251,6 +1251,7 @@ CommandHandler.COMMANDS_['add-new-services'] = /** @type {Command} */ ({
/**
* @param {!Event} event Command event.
* @param {!FileManager} fileManager FileManager to use.
+ * @suppress {checkTypes}
*/
execute: function(event, fileManager) {
fileManager.ui.suggestAppsDialog.showProviders(
@@ -1258,10 +1259,12 @@ CommandHandler.COMMANDS_['add-new-services'] = /** @type {Command} */ ({
// If a new provider is installed, then launch it so the configuration
// dialog is shown (if it's available).
if (result === SuggestAppsDialog.Result.SUCCESS) {
+ // TODO(mtomasz): Pass extension_id to addProvidedFileSystem.
chrome.fileManagerPrivate.addProvidedFileSystem(function() {
if (chrome.runtime.lastError) {
// TODO(mtomasz): Handle the error and let users uninstall the
// extension easily.
+ console.error(chrome.runtime.lastError.message);
}
});
}