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

Unified Diff: chrome/browser/chromeos/drive/drive_test_util.cc

Issue 12833019: Eliminate small CopyResultFromXxxCallback families in drive_test_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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/drive_test_util.cc
diff --git a/chrome/browser/chromeos/drive/drive_test_util.cc b/chrome/browser/chromeos/drive/drive_test_util.cc
index 44209a50ed64f230b4b83c0cce3a9e0280de3914..4d7b825d27e828359d3cb9b30091ececcc81372f 100644
--- a/chrome/browser/chromeos/drive/drive_test_util.cc
+++ b/chrome/browser/chromeos/drive/drive_test_util.cc
@@ -37,47 +37,6 @@ bool CacheStatesEqual(const DriveCacheEntry& a, const DriveCacheEntry& b) {
a.is_persistent() == b.is_persistent());
}
-void CopyResultsFromGetAvailableSpaceCallback(DriveFileError* out_error,
- int64* out_bytes_total,
- int64* out_bytes_used,
- DriveFileError error,
- int64 bytes_total,
- int64 bytes_used) {
- DCHECK(out_error);
- DCHECK(out_bytes_total);
- DCHECK(out_bytes_used);
- *out_error = error;
- *out_bytes_total = bytes_total;
- *out_bytes_used = bytes_used;
-}
-
-void CopyResultsFromSearchMetadataCallback(
- DriveFileError* out_error,
- scoped_ptr<MetadataSearchResultVector>* out_result,
- DriveFileError error,
- scoped_ptr<MetadataSearchResultVector> result) {
- DCHECK(out_error);
- DCHECK(out_result);
-
- *out_error = error;
- *out_result = result.Pass();
-}
-
-void CopyResultsFromOpenFileCallbackAndQuit(DriveFileError* out_error,
- base::FilePath* out_file_path,
- DriveFileError error,
- const base::FilePath& file_path) {
- *out_error = error;
- *out_file_path = file_path;
- MessageLoop::current()->Quit();
-}
-
-void CopyResultsFromCloseFileCallbackAndQuit(DriveFileError* out_error,
- DriveFileError error) {
- *out_error = error;
- MessageLoop::current()->Quit();
-}
-
bool LoadChangeFeed(const std::string& relative_path,
ChangeListLoader* change_list_loader,
bool is_delta_feed,
« no previous file with comments | « chrome/browser/chromeos/drive/drive_test_util.h ('k') | chrome/browser/chromeos/drive/search_metadata_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698