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

Issue 2748743004: cryptohome: Add dbus method and signal name for encryption migration. (Closed)

Created:
3 years, 9 months ago by kinaba
Modified:
3 years, 9 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, oshima+watch_chromium.org, hashimoto, fukino, dspaid, Daniel Erat, gwendal
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cryptohome: Add dbus method and signal name for encryption migration. To Chromium, this adds HomedirMethods::MigrateToExt4Crypto(const Identification& id, const Authorization& auth, const Callback& callback); that requests Cryptohomed to do the migration (for the |id| and |auth| combination containing the same data that are passed to MountEx), and CryptohomeClient::SetExt4CryptoMigrationProgressHandler( const base::Calback<void(uint64_t, uint64_t)>&); for listening to a periodic progress status update. Depends on the constants definition in https://chromium-review.googlesource.com/c/454576/ BUG=699445 Review-Url: https://codereview.chromium.org/2748743004 Cr-Commit-Position: refs/heads/master@{#458268} Committed: https://chromium.googlesource.com/chromium/src/+/4076785af1b5ff3207dc841d1283719bc3e3df4a

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address review comments #

Patch Set 3 : Avoid INFINITE timeout. Reply by signal. #

Patch Set 4 : Roll DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -1 line) Patch
M DEPS View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chromeos/cryptohome/homedir_methods.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chromeos/cryptohome/homedir_methods.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M chromeos/cryptohome/mock_homedir_methods.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/cryptohome_client.h View 1 2 4 chunks +24 lines, -0 lines 0 comments Download
M chromeos/dbus/cryptohome_client.cc View 1 2 5 chunks +52 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_cryptohome_client.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_cryptohome_client.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_cryptohome_client.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
kinaba
PTAL: dkrahn This CL is closely tied to the ChromiumOS side change. https://chromium-review.googlesource.com/c/454361/ https://chromium-review.googlesource.com/c/454576/ So, ...
3 years, 9 months ago (2017-03-14 13:57:37 UTC) #2
Daniel Erat
https://codereview.chromium.org/2748743004/diff/1/chromeos/dbus/cryptohome_client.cc File chromeos/dbus/cryptohome_client.cc (right): https://codereview.chromium.org/2748743004/diff/1/chromeos/dbus/cryptohome_client.cc#newcode939 chromeos/dbus/cryptohome_client.cc:939: const char* method_name = cryptohome::kCryptohomeMigrateToDircrypto; nit: just inline this ...
3 years, 9 months ago (2017-03-14 15:37:37 UTC) #4
Darren Krahn
https://codereview.chromium.org/2748743004/diff/1/chromeos/dbus/fake_cryptohome_client.cc File chromeos/dbus/fake_cryptohome_client.cc (right): https://codereview.chromium.org/2748743004/diff/1/chromeos/dbus/fake_cryptohome_client.cc#newcode585 chromeos/dbus/fake_cryptohome_client.cc:585: ReturnProtobufMethodCallback(reply, callback); Make a few progress calls to test ...
3 years, 9 months ago (2017-03-14 16:03:33 UTC) #5
kinaba
Thanks for the comments! https://codereview.chromium.org/2748743004/diff/1/chromeos/dbus/cryptohome_client.cc File chromeos/dbus/cryptohome_client.cc (right): https://codereview.chromium.org/2748743004/diff/1/chromeos/dbus/cryptohome_client.cc#newcode939 chromeos/dbus/cryptohome_client.cc:939: const char* method_name = cryptohome::kCryptohomeMigrateToDircrypto; ...
3 years, 9 months ago (2017-03-15 08:17:30 UTC) #6
kinaba
3 years, 9 months ago (2017-03-15 08:21:11 UTC) #8
Daniel Erat
lgtm
3 years, 9 months ago (2017-03-15 14:50:52 UTC) #9
kinaba
@Darren, @Fukino, do you think it good to go?
3 years, 9 months ago (2017-03-16 01:00:12 UTC) #10
kinaba
@Darren, @Fukino, do you think it good to go?
3 years, 9 months ago (2017-03-16 01:00:13 UTC) #11
kinaba
@Darren, @Fukino, do you think it good to go?
3 years, 9 months ago (2017-03-16 01:00:14 UTC) #12
fukino
LGTM
3 years, 9 months ago (2017-03-16 01:06:07 UTC) #13
kinaba
To reflect the comment in the cryptohome-side CL: https://chromium-review.googlesource.com/c/454361/#message-d185acc1368f82d7b4d315d0db7c86d0f2bc7088 Updated the CL a bit, to ...
3 years, 9 months ago (2017-03-16 08:44:32 UTC) #14
kinaba
Friendly ping: dkrahn@
3 years, 9 months ago (2017-03-16 22:59:46 UTC) #16
Darren Krahn
On 2017/03/16 22:59:46, kinaba wrote: > Friendly ping: dkrahn@ lgtm
3 years, 9 months ago (2017-03-17 20:54:08 UTC) #17
kinaba
On 2017/03/17 20:54:08, Darren Krahn wrote: > On 2017/03/16 22:59:46, kinaba wrote: > > Friendly ...
3 years, 9 months ago (2017-03-17 20:59:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748743004/60001
3 years, 9 months ago (2017-03-20 23:54:42 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 01:34:19 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4076785af1b5ff3207dc841d1283...

Powered by Google App Engine
This is Rietveld 408576698