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

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

Issue 109793006: Adds ImageWriterPrivate.destroyPartitions operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 7 years 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/extensions/api/image_writer_private/operation_linux.cc
diff --git a/chrome/browser/extensions/api/image_writer_private/operation_linux.cc b/chrome/browser/extensions/api/image_writer_private/operation_linux.cc
index e54b5241ceba913bc194311d659830c42471d5fc..4b92badca9fb8e6658106efe265aaf6a037a2a69 100644
--- a/chrome/browser/extensions/api/image_writer_private/operation_linux.cc
+++ b/chrome/browser/extensions/api/image_writer_private/operation_linux.cc
@@ -138,11 +138,19 @@ void Operation::WriteComplete() {
DVLOG(2) << "Completed write of " << image_path_.value();
SetProgress(kProgressComplete);
- BrowserThread::PostTask(
- BrowserThread::FILE,
- FROM_HERE,
- base::Bind(&Operation::VerifyWriteStart,
- this));
+ if (verify_write_) {
+ BrowserThread::PostTask(
+ BrowserThread::FILE,
tbarzic 2013/12/14 01:01:04 indent+=2
Drew Haven 2013/12/16 20:15:33 Done.
+ FROM_HERE,
+ base::Bind(&Operation::VerifyWriteStart,
+ this));
tbarzic 2013/12/14 01:01:04 can't this fit in the previous line?
Drew Haven 2013/12/16 20:15:33 Yep, oops. Hold-over from a longer set of argumen
+ } else {
+ BrowserThread::PostTask(
+ BrowserThread::FILE,
+ FROM_HERE,
+ base::Bind(&Operation::Finish,
+ this));
+ }
}
void Operation::VerifyWriteStart() {

Powered by Google App Engine
This is Rietveld 408576698