Index: chrome/browser/chromeos/gdata/gdata_file_system.cc |
=================================================================== |
--- chrome/browser/chromeos/gdata/gdata_file_system.cc (revision 150246) |
+++ chrome/browser/chromeos/gdata/gdata_file_system.cc (working copy) |
@@ -2866,8 +2866,7 @@ |
*resource_id = entry->AsGDataFile()->resource_id(); |
GDataDirectory* parent_dir = entry->parent(); |
- if (!parent_dir->RemoveEntry(entry)) |
- return GDATA_FILE_ERROR_NOT_FOUND; |
+ parent_dir->RemoveEntry(entry); |
satorux1
2012/08/07 22:27:05
Is this a good thing to do? I think removing an no
achuithb
2012/08/07 22:28:32
We already look up the entry using FindEntryByPath
satorux1
2012/08/07 22:38:09
Ah that's a good point.
|
FOR_EACH_OBSERVER(GDataFileSystemInterface::Observer, observers_, |
OnDirectoryChanged(parent_dir->GetFilePath())); |