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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 10825218: Simplify implementation of FindEntryByPathSync (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove FindChildAsync 2 Created 8 years, 4 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: 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()));
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_files.h » ('j') | chrome/browser/chromeos/gdata/gdata_files.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698