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

Unified Diff: chrome/browser/extensions/api/image_writer_private/operation_nonchromeos.cc

Issue 2756393002: Deflake ImageWriterUtilityClient browsertest and clients (Closed)
Patch Set: Remove progress case from Cancel test. Created 3 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
« no previous file with comments | « chrome/browser/extensions/api/image_writer_private/operation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/image_writer_private/operation_nonchromeos.cc
diff --git a/chrome/browser/extensions/api/image_writer_private/operation_nonchromeos.cc b/chrome/browser/extensions/api/image_writer_private/operation_nonchromeos.cc
index b19330f921defd41df80af183c1c7ee0990b7cac..8b257b5a0fbec273317fd707096104b6c1351d65 100644
--- a/chrome/browser/extensions/api/image_writer_private/operation_nonchromeos.cc
+++ b/chrome/browser/extensions/api/image_writer_private/operation_nonchromeos.cc
@@ -32,17 +32,10 @@ void Operation::Write(const base::Closure& continuation) {
return;
}
- BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(
- &ImageWriterUtilityClient::Write,
- image_writer_client_,
- base::Bind(&Operation::WriteImageProgress, this, file_size),
- base::Bind(&Operation::CompleteAndContinue, this, continuation),
- base::Bind(&Operation::Error, this),
- image_path_,
- device_path_));
+ image_writer_client_->Write(
+ base::Bind(&Operation::WriteImageProgress, this, file_size),
+ base::Bind(&Operation::CompleteAndContinue, this, continuation),
+ base::Bind(&Operation::Error, this), image_path_, device_path_);
}
void Operation::VerifyWrite(const base::Closure& continuation) {
@@ -61,17 +54,10 @@ void Operation::VerifyWrite(const base::Closure& continuation) {
return;
}
- BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(
- &ImageWriterUtilityClient::Verify,
- image_writer_client_,
- base::Bind(&Operation::WriteImageProgress, this, file_size),
- base::Bind(&Operation::CompleteAndContinue, this, continuation),
- base::Bind(&Operation::Error, this),
- image_path_,
- device_path_));
+ image_writer_client_->Verify(
+ base::Bind(&Operation::WriteImageProgress, this, file_size),
+ base::Bind(&Operation::CompleteAndContinue, this, continuation),
+ base::Bind(&Operation::Error, this), image_path_, device_path_);
}
} // namespace image_writer
« no previous file with comments | « chrome/browser/extensions/api/image_writer_private/operation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698