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

Unified Diff: chromeos/cryptohome/homedir_methods.cc

Issue 2818393002: cros: Mount the existing eCryptfs vault to start migration. (Closed)
Patch Set: FakeCryptohomeClient::MountEx should succeed when |to_migrate_from_ecryptfs| is true. Created 3 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: chromeos/cryptohome/homedir_methods.cc
diff --git a/chromeos/cryptohome/homedir_methods.cc b/chromeos/cryptohome/homedir_methods.cc
index c98e9912b692b4657b4655bc6b45c55e023cd951..dd3703dde708a2b5504db45ac9594ac11819264f 100644
--- a/chromeos/cryptohome/homedir_methods.cc
+++ b/chromeos/cryptohome/homedir_methods.cc
@@ -222,6 +222,9 @@ class HomedirMethodsImpl : public HomedirMethods {
if (request.force_dircrypto_if_available)
request_proto.set_force_dircrypto_if_available(true);
+ if (request.to_migrate_from_ecryptfs)
+ request_proto.set_to_migrate_from_ecryptfs(true);
+
DBusThreadManager::Get()->GetCryptohomeClient()->MountEx(
id, auth_proto, request_proto,
base::Bind(&HomedirMethodsImpl::OnMountExCallback,

Powered by Google App Engine
This is Rietveld 408576698