1) Export should be disabled if (readonly || policy || !extractable) 2) Edit should be disabled if (policy) where readonly, policy and extractable refer to the CertificateSubnode typedef at https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/resources/settings/certificate_manager_page/certificates_browser_proxy.js&l=22.
The correct logic is not exactly as mentioned above. Anyway, I figured out the correct logic in the corresponding CL https://codereview.chromium.org/1867093003.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/35862172004f5cf57bb04902c2172b5dfd00686e commit 35862172004f5cf57bb04902c2172b5dfd00686e Author: dpapad <dpapad@chromium.org> Date: Fri Apr 08 18:40:32 2016 MD Settings: Certificate manager, respect export/edit restrictions. BUG= 601543 Review URL: https://codereview.chromium.org/1867093003 Cr-Commit-Position: refs/heads/master@{#386135} [modify] https://crrev.com/35862172004f5cf57bb04902c2172b5dfd00686e/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.html [modify] https://crrev.com/35862172004f5cf57bb04902c2172b5dfd00686e/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js [modify] https://crrev.com/35862172004f5cf57bb04902c2172b5dfd00686e/chrome/browser/resources/settings/certificate_manager_page/certificates_browser_proxy.js [modify] https://crrev.com/35862172004f5cf57bb04902c2172b5dfd00686e/chrome/test/data/webui/settings/certificate_manager_page_test.js
Comment 1 by dpa...@chromium.org
, Apr 7 2016