Merge "Fix SnapshotManager instantiation." am: bc1165edbc am: 88a0f6edaa am: 36d5558ce0 am: 75626f2cd3
Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/1576377
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1f9f618ca36dba3633fd2b6a5ebdfd655372f197
diff --git a/install/snapshot_utils.cpp b/install/snapshot_utils.cpp
index 7235e67..336e50f 100644
--- a/install/snapshot_utils.cpp
+++ b/install/snapshot_utils.cpp
@@ -32,7 +32,7 @@
}
RecoveryUI* ui = device->GetUI();
- auto sm = SnapshotManager::NewForFirstStageMount();
+ auto sm = SnapshotManager::New();
if (!sm) {
ui->Print("Could not create SnapshotManager.\n");
return false;
@@ -57,7 +57,7 @@
return true;
}
- auto sm = SnapshotManager::NewForFirstStageMount();
+ auto sm = SnapshotManager::New();
if (!sm) {
// SnapshotManager could not be created. The device is still in a
// consistent state and can continue with the mounting of the existing