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

Unified Diff: chrome/browser/chromeos/drive/file_system/remove_operation.cc

Issue 278273002: drive: Change the return type of ResourceMetadata's methods to FileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/drive/file_system/remove_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/remove_operation.cc b/chrome/browser/chromeos/drive/file_system/remove_operation.cc
index 5c183cfc1eb94e0e2873e5fa883d6ca2fda50df8..d11efb823b379400a54749602142d35c6af21b26 100644
--- a/chrome/browser/chromeos/drive/file_system/remove_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/remove_operation.cc
@@ -49,7 +49,7 @@ FileError UpdateLocalState(internal::ResourceMetadata* metadata,
if (error != FILE_ERROR_OK)
return error;
- *changed_directory_path = metadata->GetFilePath(*local_id).DirName();
+ *changed_directory_path = path.DirName();
// Move to the trash.
entry.set_parent_local_id(util::kDriveTrashDirLocalId);

Powered by Google App Engine
This is Rietveld 408576698