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

Unified Diff: content/public/test/async_file_test_helper.cc

Issue 1194783002: Add fileManagerPrivate.onCopyError event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken test cases. Created 5 years, 6 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: content/public/test/async_file_test_helper.cc
diff --git a/content/public/test/async_file_test_helper.cc b/content/public/test/async_file_test_helper.cc
index 6d4449bb53621c539e987a12c3c9565fda3679aa..2c5e5d2aad98415ea727cd764defc5a29eb8066d 100644
--- a/content/public/test/async_file_test_helper.cc
+++ b/content/public/test/async_file_test_helper.cc
@@ -104,11 +104,10 @@ base::File::Error AsyncFileTestHelper::CopyWithProgress(
const CopyProgressCallback& progress_callback) {
base::File::Error result = base::File::FILE_ERROR_FAILED;
base::RunLoop run_loop;
- context->operation_runner()->Copy(src,
- dest,
- storage::FileSystemOperation::OPTION_NONE,
- progress_callback,
- AssignAndQuitCallback(&run_loop, &result));
+ context->operation_runner()->Copy(
+ src, dest, storage::FileSystemOperation::OPTION_NONE,
+ storage::FileSystemOperation::ERROR_BEHAVIOR_TERMINATE, progress_callback,
+ AssignAndQuitCallback(&run_loop, &result));
run_loop.Run();
return result;
}

Powered by Google App Engine
This is Rietveld 408576698