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

Unified Diff: chrome/browser/extensions/api/image_writer_private/operation.h

Issue 282853003: Unmounts volumes before writing to a drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds compile guard to Chrome OS includes in test_utils.h 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/extensions/api/image_writer_private/operation.h
diff --git a/chrome/browser/extensions/api/image_writer_private/operation.h b/chrome/browser/extensions/api/image_writer_private/operation.h
index 2991cf77ca55acb6402d35b4181c7f9a9ee87892..b7c467034a12b0292c7db7ebc032cf4380e5eb52 100644
--- a/chrome/browser/extensions/api/image_writer_private/operation.h
+++ b/chrome/browser/extensions/api/image_writer_private/operation.h
@@ -164,8 +164,14 @@ class Operation : public base::RefCountedThreadSafe<Operation> {
#endif
#if defined(OS_CHROMEOS)
- void StartWriteOnUIThread(const base::Closure& continuation);
-
+ // Unmounts all volumes on |device_path_|.
+ void UnmountVolumes(const base::Closure& continuation);
+ // Starts the write after unmounting.
+ void UnmountVolumesCallback(const base::Closure& continuation, bool success);
+ // Starts the ImageBurner write. Note that target_path is the file path of
+ // the device where device_path has been a system device path.
+ void StartWriteOnUIThread(const std::string& target_path,
+ const base::Closure& continuation);
void OnBurnFinished(const base::Closure& continuation,
const std::string& target_path,
bool success,

Powered by Google App Engine
This is Rietveld 408576698