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

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

Issue 940443003: Files.app: Skip updating subdirectories of a volume whose display root is not gotten yet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/naming_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/naming_controller.js b/ui/file_manager/file_manager/foreground/js/naming_controller.js
index 8fdda9bee095be3f2e20aa986b4d4f87efc0b503..50a6ff3c70724a431ee78f538ac578d33bbcac35 100644
--- a/ui/file_manager/file_manager/foreground/js/naming_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/naming_controller.js
@@ -103,7 +103,7 @@ NamingController.prototype.validateFileNameForSaving = function(filename) {
if (!isValid)
return Promise.reject('Invalid filename.');
- if (util.isFakeEntry(directory)) {
+ if (directory && util.isFakeEntry(directory)) {
// Can't save a file into a fake directory.
return Promise.reject('Cannot save into fake entry.');
}

Powered by Google App Engine
This is Rietveld 408576698