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

Issue 14179007: Move cryptohome_library to src/chromeos (Closed)

Created:
7 years, 8 months ago by stevenjb
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Move cryptohome_library to src/chromeos This CL does the following: 1. Move [De|En]cryptWithSystemSalt to CryptohomeLibrary 2. Remove CryptohomeLibrary from CrosLibrary 3. Move CryptohomeLibrary to src/chromeos BUG=233724 For chrome_browser_chromeos.gypi TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196159

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase + Fix login_browsertest #

Patch Set 3 : Fix comments #

Patch Set 4 : Add expectation to MockCryptohomeClient #

Patch Set 5 : Fix DeviceLocalAccountTest #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -683 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cert_library.h View 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/cros/cert_library.cc View 1 2 3 4 7 chunks +0 lines, -174 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_library.h View 4 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_library.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_mock.h View 4 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_mock.cc View 5 chunks +1 line, -17 lines 0 comments Download
D chrome/browser/chromeos/cros/cryptohome_library.h View 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/chromeos/cros/cryptohome_library.cc View 1 chunk +0 lines, -208 lines 0 comments Download
M chrome/browser/chromeos/cros/mock_cert_library.h View 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/browser/chromeos/cros/mock_cryptohome_library.h View 1 chunk +0 lines, -47 lines 0 comments Download
D chrome/browser/chromeos/cros/mock_cryptohome_library.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/login/login_browsertest.cc View 1 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 10 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/managed/managed_user_authenticator.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/managed/managed_user_authenticator.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 1 2 3 4 5 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/screens/eula_screen.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/screens/reset_screen.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/net/connectivity_state_helper.h View 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/net/connectivity_state_helper.cc View 3 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/enterprise_install_attributes.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/enterprise_install_attributes_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc View 1 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/system/drm_settings.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
A + chromeos/cryptohome/cryptohome_library.h View 1 2 2 chunks +37 lines, -8 lines 0 comments Download
A + chromeos/cryptohome/cryptohome_library.cc View 5 chunks +154 lines, -7 lines 2 comments Download
A + chromeos/cryptohome/mock_cryptohome_library.h View 2 chunks +8 lines, -4 lines 0 comments Download
A + chromeos/cryptohome/mock_cryptohome_library.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.cc View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
stevenjb
7 years, 8 months ago (2013-04-19 22:23:45 UTC) #1
satorux1
LGTM
7 years, 8 months ago (2013-04-22 01:00:07 UTC) #2
hashimoto
lgtm assuming all tests will pass after the compile error is fixed. https://codereview.chromium.org/14179007/diff/1/chrome/browser/chromeos/login/login_browsertest.cc File chrome/browser/chromeos/login/login_browsertest.cc ...
7 years, 8 months ago (2013-04-22 06:59:49 UTC) #3
Mattias Nissler (ping if slow)
chrome/browser/{policy,settings} LGTM https://codereview.chromium.org/14179007/diff/1/chromeos/cryptohome/cryptohome_library.h File chromeos/cryptohome/cryptohome_library.h (right): https://codereview.chromium.org/14179007/diff/1/chromeos/cryptohome/cryptohome_library.h#newcode26 chromeos/cryptohome/cryptohome_library.h:26: // implementation). Call SetForTest(NUL) when |impl| is ...
7 years, 8 months ago (2013-04-22 09:43:40 UTC) #4
stevenjb
https://codereview.chromium.org/14179007/diff/1/chromeos/cryptohome/cryptohome_library.h File chromeos/cryptohome/cryptohome_library.h (right): https://codereview.chromium.org/14179007/diff/1/chromeos/cryptohome/cryptohome_library.h#newcode26 chromeos/cryptohome/cryptohome_library.h:26: // implementation). Call SetForTest(NUL) when |impl| is deleted. On ...
7 years, 8 months ago (2013-04-22 16:54:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14179007/21001
7 years, 8 months ago (2013-04-23 17:13:31 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-23 17:13:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14179007/9003
7 years, 8 months ago (2013-04-23 19:55:57 UTC) #8
commit-bot: I haz the power
Presubmit check for 14179007-9003 failed and returned exit status 1. INFO:root:Found 39 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-23 19:56:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14179007/9003
7 years, 8 months ago (2013-04-23 20:08:57 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=32389
7 years, 8 months ago (2013-04-23 23:14:14 UTC) #11
stevenjb
Committed patchset #7 manually as r196159 (presubmit successful).
7 years, 8 months ago (2013-04-24 16:11:38 UTC) #12
Ryan Sleevi
7 years, 8 months ago (2013-04-26 18:38:19 UTC) #13
Message was sent while issue was closed.
drive-by.

https://codereview.chromium.org/14179007/diff/42001/chromeos/cryptohome/crypt...
File chromeos/cryptohome/cryptohome_library.cc (right):

https://codereview.chromium.org/14179007/diff/42001/chromeos/cryptohome/crypt...
chromeos/cryptohome/cryptohome_library.cc:26: const size_t kKeySize = 16;
nit: This is really kNonceSize.

A bit confusing, given that kKeySize suggests its for the DeriveKeyFromPassword
(which takes a key size *in bits*), and which is hardcoded at 256 bits on line
175.

https://codereview.chromium.org/14179007/diff/42001/chromeos/cryptohome/crypt...
chromeos/cryptohome/cryptohome_library.cc:172: crypto::SymmetricKey*
PassphraseToKey(const std::string& passprhase,
typo: passprhase -> passphrase

Powered by Google App Engine
This is Rietveld 408576698