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

Issue 14192017: Extract certificate policy application from NetworkLibrary. (Closed)

Created:
7 years, 8 months ago by pneubeck (no reviews)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, eroman, mmenke, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Extract certificate policy application from NetworkLibrary. This is mostly a refactoring: - Import of certificates is handled by a new CertifcateHandler, which will get more functionality like resolving CertificatePatterns in upcoming commits. - Policy validation moved into NetworkConfigurationUpdater and net_internals, because it covers both certificates and networks. The only functional change is that certificate policies should now also work if ManagedNetworkConfigurationHandler is used instead of NetworkLibrary. BUG=223869 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196735

Patch Set 1 : Initial patch. #

Total comments: 54

Patch Set 2 : Rebased. #

Patch Set 3 : Addressed comments except removing CertificateHandler. #

Patch Set 4 : Removed global singleton instance of CertificateHandler. #

Patch Set 5 : Addressed comments. #

Patch Set 6 : Fixed unit tests #

Patch Set 7 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+936 lines, -658 lines) Patch
M chrome/browser/chromeos/cros/mock_network_library.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.h View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.cc View 1 2 5 chunks +95 lines, -182 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_unittest.cc View 1 2 3 4 5 10 chunks +11 lines, -70 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_browsertest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/network_screen_browsertest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/update_screen_browsertest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.h View 1 2 3 chunks +18 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.cc View 1 2 3 4 5 6 1 chunk +62 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_impl.h View 1 2 3 4 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_impl.cc View 1 2 3 4 chunks +22 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_impl_cros.h View 1 2 3 4 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_impl_cros.cc View 1 2 3 4 5 6 4 chunks +19 lines, -73 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_impl_cros_unittest.cc View 1 2 3 4 5 6 5 chunks +291 lines, -133 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 2 chunks +19 lines, -7 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
D chrome/test/data/chromeos/net/shill_for_toplevel_with_unknown_fields.json View 1 2 3 4 5 1 chunk +0 lines, -21 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 4 chunks +12 lines, -8 lines 0 comments Download
A chromeos/network/certificate_handler.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A chromeos/network/certificate_handler.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler.cc View 1 2 3 4 5 6 2 chunks +22 lines, -56 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_unittest.cc View 1 chunk +5 lines, -1 line 0 comments Download
A chromeos/network/mock_certificate_handler.h View 1 chunk +28 lines, -0 lines 0 comments Download
A + chromeos/network/mock_certificate_handler.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_unittest.cc View 3 chunks +43 lines, -17 lines 0 comments Download
M chromeos/network/onc/onc_utils.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_utils.cc View 1 2 3 4 5 3 chunks +87 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_validator_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M chromeos/test/data/network/invalid_settings_with_repairs.json View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A + chromeos/test/data/network/repaired_toplevel_partially_invalid.onc View 1 chunk +1 line, -8 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
pneubeck (no reviews)
@thestig chrome/chrome_browser_chromeos.gypi @nkostylev .../login @eroman .../net_internals @joaodasilva .../policy @steven .../chromeos/cros chromeos/network The CL is mostly ...
7 years, 8 months ago (2013-04-22 08:07:22 UTC) #1
Nikita (slow)
chromeos/login lgtm
7 years, 8 months ago (2013-04-22 09:08:08 UTC) #2
Joao da Silva
https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/cros/network_library_impl_base.cc File chrome/browser/chromeos/cros/network_library_impl_base.cc (right): https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/cros/network_library_impl_base.cc#newcode1087 chrome/browser/chromeos/cros/network_library_impl_base.cc:1087: if (true) { ? https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/policy/network_configuration_updater.cc File chrome/browser/chromeos/policy/network_configuration_updater.cc (right): https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/policy/network_configuration_updater.cc#newcode20 ...
7 years, 8 months ago (2013-04-22 10:38:09 UTC) #3
stevenjb
https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/policy/network_configuration_updater.cc File chrome/browser/chromeos/policy/network_configuration_updater.cc (right): https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/policy/network_configuration_updater.cc#newcode33 chrome/browser/chromeos/policy/network_configuration_updater.cc:33: trust_anchors_.swap(*trust_anchors); Mixing scoped_ptr and direct pointer operations (swap) is ...
7 years, 8 months ago (2013-04-22 16:53:40 UTC) #4
pneubeck (no reviews)
https://codereview.chromium.org/14192017/diff/15001/chromeos/network/certificate_handler.cc File chromeos/network/certificate_handler.cc (right): https://codereview.chromium.org/14192017/diff/15001/chromeos/network/certificate_handler.cc#newcode14 chromeos/network/certificate_handler.cc:14: CertificateHandler* g_certificate_handler_instance = NULL; Agree. This class was meant ...
7 years, 8 months ago (2013-04-22 18:15:49 UTC) #5
eroman
net_internals LGTM
7 years, 8 months ago (2013-04-22 20:02:16 UTC) #6
Lei Zhang
chrome/chrome_browser_chromeos.gypi lgtm
7 years, 8 months ago (2013-04-22 20:11:26 UTC) #7
pneubeck (no reviews)
@Steven, @Joao, PTAL https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/cros/network_library_impl_base.cc File chrome/browser/chromeos/cros/network_library_impl_base.cc (right): https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/cros/network_library_impl_base.cc#newcode1087 chrome/browser/chromeos/cros/network_library_impl_base.cc:1087: if (true) { On 2013/04/22 10:38:09, ...
7 years, 8 months ago (2013-04-23 18:05:25 UTC) #8
stevenjb
Thanks. LGTM. https://codereview.chromium.org/14192017/diff/15001/chromeos/network/managed_network_configuration_handler.cc File chromeos/network/managed_network_configuration_handler.cc (right): https://codereview.chromium.org/14192017/diff/15001/chromeos/network/managed_network_configuration_handler.cc#newcode827 chromeos/network/managed_network_configuration_handler.cc:827: (*it)->GetAsDictionary(&network); On 2013/04/23 18:05:25, pneubeck wrote: > ...
7 years, 8 months ago (2013-04-23 20:02:59 UTC) #9
Joao da Silva
lgtm https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/policy/network_configuration_updater.cc File chrome/browser/chromeos/policy/network_configuration_updater.cc (right): https://codereview.chromium.org/14192017/diff/15001/chrome/browser/chromeos/policy/network_configuration_updater.cc#newcode33 chrome/browser/chromeos/policy/network_configuration_updater.cc:33: trust_anchors_.swap(*trust_anchors); On 2013/04/23 18:05:25, pneubeck wrote: > On ...
7 years, 8 months ago (2013-04-24 09:21:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/14192017/67001
7 years, 8 months ago (2013-04-24 10:54:06 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-24 11:18:55 UTC) #12
pneubeck (no reviews)
https://codereview.chromium.org/14192017/diff/15001/chromeos/network/managed_network_configuration_handler.cc File chromeos/network/managed_network_configuration_handler.cc (right): https://codereview.chromium.org/14192017/diff/15001/chromeos/network/managed_network_configuration_handler.cc#newcode827 chromeos/network/managed_network_configuration_handler.cc:827: (*it)->GetAsDictionary(&network); On 2013/04/23 20:02:59, stevenjb (chromium) wrote: > On ...
7 years, 8 months ago (2013-04-24 11:25:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/14192017/69003
7 years, 8 months ago (2013-04-24 11:25:23 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=106352
7 years, 8 months ago (2013-04-24 12:12:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/14192017/65006
7 years, 8 months ago (2013-04-25 08:35:05 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chromedriver2_unittests, components_unittests, ...
7 years, 8 months ago (2013-04-25 08:50:30 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/14192017/83001
7 years, 8 months ago (2013-04-26 08:28:03 UTC) #18
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/policy/network_configuration_updater_impl_cros.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-26 13:51:10 UTC) #19
pneubeck (no reviews)
7 years, 8 months ago (2013-04-26 15:03:02 UTC) #20
Message was sent while issue was closed.
Committed patchset #7 manually as r196735 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698