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

Issue 494093002: OwnerKeyUtil is moved to components/ownership. (Closed)

Created:
6 years, 4 months ago by ygorshenin1
Modified:
6 years, 3 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

OwnerKeyUtil is moved to components/ownership. BUG=398856 TEST=existing browser_tests Committed: https://crrev.com/39e36781429195b553416fe35e2eb989c593a5f9 Cr-Commit-Position: refs/heads/master@{#292616}

Patch Set 1 #

Patch Set 2 : Fixed non-ChromeOS builds. #

Patch Set 3 : Fixed BUILD.gn file. #

Patch Set 4 : Fixed MockOwnerKeyUtil. #

Patch Set 5 : Rebase. #

Total comments: 24

Patch Set 6 : Fix. #

Total comments: 4

Patch Set 7 : Added public static OwnerSettingsService::MakeOwnerKeyUtil() method. #

Total comments: 4

Patch Set 8 : Comments are addressed. #

Patch Set 9 : GYP files are fixed. #

Total comments: 1

Patch Set 10 : Added forward declarations of RSAPrivateKey and PK11SlotInfoStr. #

Total comments: 3

Patch Set 11 : Restored pure base OwnerKeyUtil. #

Total comments: 20

Patch Set 12 : Fixes. #

Total comments: 6

Patch Set 13 : Fixes. #

Patch Set 14 : Restored OWHERSHIP_EXPORT. #

Patch Set 15 : Fixed GYP file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -509 lines) Patch
M chrome/browser/chromeos/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 4 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/ownership/owner_settings_service.h View 1 2 3 4 5 6 7 5 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/ownership/owner_settings_service.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_invalidator_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_store.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_service.h View 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_service.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/mock_owner_key_util.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/browser/chromeos/settings/mock_owner_key_util.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/chromeos/settings/owner_key_util.h View 1 chunk +0 lines, -125 lines 0 comments Download
D chrome/browser/chromeos/settings/owner_key_util.cc View 1 2 3 4 5 6 1 chunk +0 lines, -98 lines 0 comments Download
D chrome/browser/chromeos/settings/owner_key_util_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -100 lines 0 comments Download
M chrome/browser/chromeos/settings/session_manager_operation.h View 5 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/settings/session_manager_operation.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/session_manager_operation_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -3 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
A components/ownership.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +38 lines, -0 lines 0 comments Download
A components/ownership/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +43 lines, -0 lines 0 comments Download
A + components/ownership/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A + components/ownership/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/ownership/mock_owner_key_util.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +14 lines, -10 lines 0 comments Download
A + components/ownership/mock_owner_key_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -5 lines 0 comments Download
A components/ownership/owner_key_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +105 lines, -0 lines 0 comments Download
A components/ownership/owner_key_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +29 lines, -0 lines 0 comments Download
A components/ownership/owner_key_util_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +42 lines, -0 lines 0 comments Download
A components/ownership/owner_key_util_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +65 lines, -0 lines 0 comments Download
A + components/ownership/owner_key_util_impl_unittest.cc View 1 2 3 4 5 6 8 9 10 6 chunks +10 lines, -11 lines 0 comments Download
A components/ownership/ownership_export.h View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
ygorshenin1
Nikita, Julian - could you please take a quick look at the CL to check ...
6 years, 4 months ago (2014-08-21 15:31:11 UTC) #1
Nikita (slow)
lgtm
6 years, 4 months ago (2014-08-21 16:25:46 UTC) #2
pastarmovj
lgtm
6 years, 4 months ago (2014-08-25 09:54:02 UTC) #3
ygorshenin1
+ wtc@ for crypto/* and net/* + stevenjb@ for chromeos/* + erikwright@ for components/*
6 years, 4 months ago (2014-08-25 10:23:31 UTC) #4
erikwright (departed)
https://codereview.chromium.org/494093002/diff/100001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/494093002/diff/100001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode59 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:59: ownership::OwnerKeyUtil::Create(); Ideally you would avoid looking up the path ...
6 years, 4 months ago (2014-08-25 15:51:07 UTC) #5
stevenjb
lgtm w/nits https://codereview.chromium.org/494093002/diff/100001/components/ownership/owner_key_util.cc File components/ownership/owner_key_util.cc (right): https://codereview.chromium.org/494093002/diff/100001/components/ownership/owner_key_util.cc#newcode46 components/ownership/owner_key_util.cc:46: CHECK(PathService::Get(chromeos::FILE_OWNER_KEY, &owner_key_path)); nit: I am not a ...
6 years, 4 months ago (2014-08-25 15:57:30 UTC) #6
wtc
On 2014/08/25 10:23:31, ygorshenin1 wrote: > + wtc@ for crypto/* and net/* Patch set 5 ...
6 years, 4 months ago (2014-08-25 19:27:24 UTC) #7
wtc
Review comments on patch set 5: I think I figured out how to review the ...
6 years, 4 months ago (2014-08-25 19:41:51 UTC) #8
ygorshenin1
Patchset #6 (id:120001) has been deleted
6 years, 3 months ago (2014-08-26 13:56:55 UTC) #9
ygorshenin1
PTAL https://codereview.chromium.org/494093002/diff/100001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/494093002/diff/100001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode59 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:59: ownership::OwnerKeyUtil::Create(); On 2014/08/25 15:51:06, erikwright wrote: > Ideally ...
6 years, 3 months ago (2014-08-26 14:53:36 UTC) #10
stevenjb
https://codereview.chromium.org/494093002/diff/140001/chrome/browser/chromeos/ownership/owner_settings_service.cc File chrome/browser/chromeos/ownership/owner_settings_service.cc (right): https://codereview.chromium.org/494093002/diff/140001/chrome/browser/chromeos/ownership/owner_settings_service.cc#newcode53 chrome/browser/chromeos/ownership/owner_settings_service.cc:53: } So, while I do like removing the reference ...
6 years, 3 months ago (2014-08-26 16:02:13 UTC) #11
ygorshenin1
PTAL https://codereview.chromium.org/494093002/diff/140001/chrome/browser/chromeos/ownership/owner_settings_service.cc File chrome/browser/chromeos/ownership/owner_settings_service.cc (right): https://codereview.chromium.org/494093002/diff/140001/chrome/browser/chromeos/ownership/owner_settings_service.cc#newcode53 chrome/browser/chromeos/ownership/owner_settings_service.cc:53: } On 2014/08/26 16:02:12, stevenjb wrote: > So, ...
6 years, 3 months ago (2014-08-26 16:31:16 UTC) #12
stevenjb
Cheers. LGTM https://codereview.chromium.org/494093002/diff/160001/chrome/browser/chromeos/ownership/owner_settings_service.h File chrome/browser/chromeos/ownership/owner_settings_service.h (right): https://codereview.chromium.org/494093002/diff/160001/chrome/browser/chromeos/ownership/owner_settings_service.h#newcode84 chrome/browser/chromeos/ownership/owner_settings_service.h:84: static scoped_refptr<ownership::OwnerKeyUtil> MakeOwnerKeyUtil(); nit: Non ForTesting method ...
6 years, 3 months ago (2014-08-26 16:36:44 UTC) #13
erikwright (departed)
It would be nice to not have to construct the OwnerKeyUtil in so many places. ...
6 years, 3 months ago (2014-08-26 16:49:55 UTC) #14
wtc
Review comments on patch set 7: https://codereview.chromium.org/494093002/diff/160001/components/ownership/owner_key_util.h File components/ownership/owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/160001/components/ownership/owner_key_util.h#newcode17 components/ownership/owner_key_util.h:17: #include "net/cert/x509_util_nss.h" On ...
6 years, 3 months ago (2014-08-26 18:00:30 UTC) #15
ygorshenin1
Patchset #9 (id:200001) has been deleted
6 years, 3 months ago (2014-08-27 14:14:15 UTC) #16
ygorshenin1
PTAL https://codereview.chromium.org/494093002/diff/140001/components/ownership/owner_key_util.h File components/ownership/owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/140001/components/ownership/owner_key_util.h#newcode72 components/ownership/owner_key_util.h:72: class OWNERSHIP_EXPORT OwnerKeyUtil It seems that there're no ...
6 years, 3 months ago (2014-08-27 20:39:12 UTC) #17
wtc
Patch set 9 LGTM. https://codereview.chromium.org/494093002/diff/220001/components/ownership/owner_key_util.h File components/ownership/owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/220001/components/ownership/owner_key_util.h#newcode20 components/ownership/owner_key_util.h:20: #include "crypto/rsa_private_key.h" Just wanted to ...
6 years, 3 months ago (2014-08-27 22:12:53 UTC) #18
ygorshenin1
On 2014/08/27 22:12:53, wtc wrote: > Patch set 9 LGTM. > > https://codereview.chromium.org/494093002/diff/220001/components/ownership/owner_key_util.h > File ...
6 years, 3 months ago (2014-08-28 15:02:58 UTC) #19
ygorshenin1
Erik, could you please take another look?
6 years, 3 months ago (2014-08-28 15:03:21 UTC) #20
erikwright (departed)
(a) Instead of having the OwnerKeyUtil statically constructed in OwnerSettingsService::OwnerSettingsService, make it a constructor argument. ...
6 years, 3 months ago (2014-08-28 16:31:50 UTC) #21
ygorshenin1
After discussion with Erik pure base OwnerKeyUtil was restored. PTAL.
6 years, 3 months ago (2014-08-28 18:17:20 UTC) #22
erikwright (departed)
https://codereview.chromium.org/494093002/diff/260001/components/ownership/mock_owner_key_util.h File components/ownership/mock_owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/260001/components/ownership/mock_owner_key_util.h#newcode23 components/ownership/mock_owner_key_util.h:23: // OwnerKeyUtil: OwnerKeyUtil implementation https://codereview.chromium.org/494093002/diff/260001/components/ownership/owner_key_util.h File components/ownership/owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/260001/components/ownership/owner_key_util.h#newcode5 ...
6 years, 3 months ago (2014-08-28 18:39:58 UTC) #23
ygorshenin1
PTAL https://codereview.chromium.org/494093002/diff/260001/components/ownership/mock_owner_key_util.h File components/ownership/mock_owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/260001/components/ownership/mock_owner_key_util.h#newcode23 components/ownership/mock_owner_key_util.h:23: // OwnerKeyUtil: On 2014/08/28 18:39:57, erikwright wrote: > ...
6 years, 3 months ago (2014-08-28 18:59:05 UTC) #24
erikwright (departed)
components/ LGTM with nits. https://codereview.chromium.org/494093002/diff/280001/components/ownership/owner_key_util.h File components/ownership/owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/280001/components/ownership/owner_key_util.h#newcode11 components/ownership/owner_key_util.h:11: #include "base/basictypes.h" same comment. https://codereview.chromium.org/494093002/diff/280001/components/ownership/owner_key_util.h#newcode31 ...
6 years, 3 months ago (2014-08-28 19:41:38 UTC) #25
ygorshenin1
Many thanks! https://codereview.chromium.org/494093002/diff/280001/components/ownership/owner_key_util.h File components/ownership/owner_key_util.h (right): https://codereview.chromium.org/494093002/diff/280001/components/ownership/owner_key_util.h#newcode11 components/ownership/owner_key_util.h:11: #include "base/basictypes.h" I need basictypes.h for the ...
6 years, 3 months ago (2014-08-29 10:28:58 UTC) #26
ygorshenin1
The CQ bit was checked by ygorshenin@chromium.org
6 years, 3 months ago (2014-08-29 10:29:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/494093002/300001
6 years, 3 months ago (2014-08-29 10:30:26 UTC) #28
ygorshenin1
The CQ bit was unchecked by ygorshenin@chromium.org
6 years, 3 months ago (2014-08-29 10:45:37 UTC) #29
ygorshenin1
The CQ bit was checked by ygorshenin@chromium.org
6 years, 3 months ago (2014-08-29 10:47:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/494093002/320001
6 years, 3 months ago (2014-08-29 10:47:38 UTC) #31
ygorshenin1
The CQ bit was unchecked by ygorshenin@chromium.org
6 years, 3 months ago (2014-08-29 11:42:15 UTC) #32
ygorshenin1
The CQ bit was checked by ygorshenin@chromium.org
6 years, 3 months ago (2014-08-29 12:01:55 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/494093002/340001
6 years, 3 months ago (2014-08-29 12:02:58 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 12:59:47 UTC) #35
commit-bot: I haz the power
Committed patchset #15 (id:340001) as 7ea6e9bbe3fb1e8fd091f6b592dc48bd47f5d946
6 years, 3 months ago (2014-08-29 13:09:58 UTC) #36
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:08:02 UTC) #37
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/39e36781429195b553416fe35e2eb989c593a5f9
Cr-Commit-Position: refs/heads/master@{#292616}

Powered by Google App Engine
This is Rietveld 408576698