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

Unified Diff: src/platform/update_engine/filesystem_copier_action.h

Issue 1694025: AU: Update Downloader to support our image formats. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 8 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: src/platform/update_engine/filesystem_copier_action.h
diff --git a/src/platform/update_engine/filesystem_copier_action.h b/src/platform/update_engine/filesystem_copier_action.h
index 9e7f0606796edad379f2c0faf5a6540361a1dfc9..786c2ab083c3653c928e7685463cc6262343c7b6 100644
--- a/src/platform/update_engine/filesystem_copier_action.h
+++ b/src/platform/update_engine/filesystem_copier_action.h
@@ -32,8 +32,9 @@ class ActionTraits<FilesystemCopierAction> {
class FilesystemCopierAction : public Action<FilesystemCopierAction> {
public:
- FilesystemCopierAction()
- : src_stream_(NULL),
+ explicit FilesystemCopierAction(bool copying_kernel_install_path)
+ : copying_kernel_install_path_(copying_kernel_install_path),
+ src_stream_(NULL),
dst_stream_(NULL),
canceller_(NULL),
read_in_flight_(false),
@@ -69,6 +70,10 @@ class FilesystemCopierAction : public Action<FilesystemCopierAction> {
// was_cancelled should be true if TerminateProcessing() was called.
void Cleanup(bool success, bool was_cancelled);
+ // If true, this action is copying to the kernel_install_path from
+ // the install plan, otherwise it's copying just to the install_path.
+ const bool copying_kernel_install_path_;
+
// The path to copy from. If empty (the default), the source is from the
// passed in InstallPlan.
std::string copy_source_;
« no previous file with comments | « src/platform/update_engine/download_action_unittest.cc ('k') | src/platform/update_engine/filesystem_copier_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698