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

Unified Diff: chrome/browser/chromeos/drive/file_system/search_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/search_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/search_operation.cc b/chrome/browser/chromeos/drive/file_system/search_operation.cc
index 8b8d16f706b34ede8a1eaefd1578963a2d6abae2..8d76a24dc0702072ac529928a4d5bc2f0348f9e1 100644
--- a/chrome/browser/chromeos/drive/file_system/search_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/search_operation.cc
@@ -67,9 +67,11 @@ FileError ResolveSearchResultOnBlockingPool(
}
if (error != FILE_ERROR_OK)
return error;
- result->push_back(
- SearchResultInfo(resource_metadata->GetFilePath(local_id),
- entry.file_info().is_directory()));
+ base::FilePath path;
+ error = resource_metadata->GetFilePath(local_id, &path);
+ if (error != FILE_ERROR_OK)
+ return error;
+ result->push_back(SearchResultInfo(path, entry.file_info().is_directory()));
}
return FILE_ERROR_OK;
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/remove_operation.cc ('k') | chrome/browser/chromeos/drive/resource_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698