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

Issue 148183013: Use per-user nssdb in onc certificate importer (Closed)

Created:
6 years, 10 months ago by tbarzic
Modified:
6 years, 10 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, eroman, davemoore+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, mmenke
Visibility:
Public.

Description

Use per-user nssdb in onc certificate importer Instead of always using singleton NSSCertDatabase, pass the database to use as an argument to CertificateImporter::ImportCertificates BUG=315343 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249881

Patch Set 1 #

Patch Set 2 : a crude version #

Patch Set 3 : #

Patch Set 4 : nnn #

Patch Set 5 : #

Patch Set 6 : . #

Patch Set 7 : #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Total comments: 12

Patch Set 11 : . #

Patch Set 12 : .. #

Patch Set 13 : . #

Patch Set 14 : should be ready #

Total comments: 2

Patch Set 15 : . #

Total comments: 8

Patch Set 16 : . #

Patch Set 17 : Create cert importer in the Updater rather than factory #

Patch Set 18 : pair of nits #

Patch Set 19 : rebase #

Patch Set 20 : . #

Total comments: 1

Patch Set 21 : . #

Patch Set 22 : fix browser_tests compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -145 lines) Patch
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_network_configuration_updater.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_network_configuration_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 chunks +157 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +59 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +80 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +33 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +52 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +10 lines, -4 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +26 lines, -19 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +69 lines, -50 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
tbarzic
Hey, can you see if this makes sense to you? (especially stuff in network_configuration_updater.cc). I ...
6 years, 10 months ago (2014-02-03 22:41:15 UTC) #1
pneubeck (no reviews)
On 2014/02/03 22:41:15, tbarzic wrote: > Hey, can you see if this makes sense to ...
6 years, 10 months ago (2014-02-04 09:27:32 UTC) #2
tbarzic
On 2014/02/04 09:27:32, pneubeck wrote: > On 2014/02/03 22:41:15, tbarzic wrote: > > Hey, can ...
6 years, 10 months ago (2014-02-04 23:44:35 UTC) #3
tbarzic
https://codereview.chromium.org/148183013/diff/390001/chrome/browser/chromeos/login/login_utils.h File chrome/browser/chromeos/login/login_utils.h (right): https://codereview.chromium.org/148183013/diff/390001/chrome/browser/chromeos/login/login_utils.h#newcode110 chrome/browser/chromeos/login/login_utils.h:110: virtual void InitNSSCertDatabaseUsers(Profile* user_profile) = 0; I currently lack ...
6 years, 10 months ago (2014-02-04 23:44:55 UTC) #4
pneubeck (no reviews)
Looks mostly good. Please consider the larger inline comment. Thanks for the improved testing!! https://codereview.chromium.org/148183013/diff/390001/chrome/browser/chromeos/policy/network_configuration_updater.cc ...
6 years, 10 months ago (2014-02-05 11:03:26 UTC) #5
tbarzic
https://codereview.chromium.org/148183013/diff/390001/chrome/browser/chromeos/policy/network_configuration_updater.cc File chrome/browser/chromeos/policy/network_configuration_updater.cc (right): https://codereview.chromium.org/148183013/diff/390001/chrome/browser/chromeos/policy/network_configuration_updater.cc#newcode89 chrome/browser/chromeos/policy/network_configuration_updater.cc:89: void NetworkConfigurationUpdater::ApplyPolicy() { On 2014/02/05 11:03:27, pneubeck wrote: > ...
6 years, 10 months ago (2014-02-06 01:19:42 UTC) #6
tbarzic
+xiyuan: owner for chrome/browser/ui/webui
6 years, 10 months ago (2014-02-06 01:20:25 UTC) #7
xiyuan
https://codereview.chromium.org/148183013/diff/620001/chrome/browser/ui/webui/options/certificate_manager_browsertest.cc File chrome/browser/ui/webui/options/certificate_manager_browsertest.cc (right): https://codereview.chromium.org/148183013/diff/620001/chrome/browser/ui/webui/options/certificate_manager_browsertest.cc#newcode109 chrome/browser/ui/webui/options/certificate_manager_browsertest.cc:109: content::RunAllPendingInMessageLoop(); Should this and line 107 be inside #if ...
6 years, 10 months ago (2014-02-06 01:28:07 UTC) #8
tbarzic
https://codereview.chromium.org/148183013/diff/620001/chrome/browser/ui/webui/options/certificate_manager_browsertest.cc File chrome/browser/ui/webui/options/certificate_manager_browsertest.cc (right): https://codereview.chromium.org/148183013/diff/620001/chrome/browser/ui/webui/options/certificate_manager_browsertest.cc#newcode109 chrome/browser/ui/webui/options/certificate_manager_browsertest.cc:109: content::RunAllPendingInMessageLoop(); On 2014/02/06 01:28:08, xiyuan wrote: > Should this ...
6 years, 10 months ago (2014-02-06 01:36:12 UTC) #9
xiyuan
webui LGTM
6 years, 10 months ago (2014-02-06 01:42:15 UTC) #10
pneubeck (no reviews)
One last comment to fix the initialization. After that lgtm. Thanks for taking the time ...
6 years, 10 months ago (2014-02-06 09:37:46 UTC) #11
tbarzic
https://codereview.chromium.org/148183013/diff/680001/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc File chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc (right): https://codereview.chromium.org/148183013/diff/680001/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc#newcode589 chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc:589: PolicyAppliedImidiatellyIfProvidersInitialized) { On 2014/02/06 09:37:46, pneubeck wrote: > Imidiatelly ...
6 years, 10 months ago (2014-02-06 23:02:36 UTC) #12
pneubeck (no reviews)
The advantage of having the profile_added observation in the factory would have been that: The ...
6 years, 10 months ago (2014-02-07 08:56:34 UTC) #13
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 10 months ago (2014-02-07 18:51:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/148183013/1160001
6 years, 10 months ago (2014-02-07 18:52:44 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 19:45:03 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, ...
6 years, 10 months ago (2014-02-07 19:45:04 UTC) #17
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 10 months ago (2014-02-07 21:50:43 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/148183013/1360002
6 years, 10 months ago (2014-02-07 21:53:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/148183013/1360002
6 years, 10 months ago (2014-02-07 22:25:17 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-02-08 01:29:07 UTC) #21
Message was sent while issue was closed.
Change committed as 249881

Powered by Google App Engine
This is Rietveld 408576698