summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/extensions/file_manager/event_router.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/extensions/file_manager/event_router.cc')
-rw-r--r--chrome/browser/chromeos/extensions/file_manager/event_router.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.cc b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
index 8e424cf..eb40b93 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
@@ -733,9 +733,10 @@ void EventRouter::DispatchDirectoryChangeEvent(
void EventRouter::DispatchDirectoryChangeEventWithEntryDefinition(
bool watcher_error,
const EntryDefinition& entry_definition) {
- if (entry_definition.error != base::File::FILE_OK) {
- DVLOG(1) << "Unable to dispatch event because resolving the entry "
- << "definition failed.";
+ if (entry_definition.error != base::File::FILE_OK ||
+ !entry_definition.is_directory) {
+ DVLOG(1) << "Unable to dispatch event because resolving the directory "
+ << "entry definition failed.";
return;
}