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

Unified Diff: chrome/browser/certificate_manager_model.h

Issue 193273002: Handle cases when user cert database has NULL slots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/certificate_manager_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/certificate_manager_model.h
diff --git a/chrome/browser/certificate_manager_model.h b/chrome/browser/certificate_manager_model.h
index 7364b32714bbf2727e32319515812af7c7d89866..34d0f0786f29b2491e918d725508f12be2c90234 100644
--- a/chrome/browser/certificate_manager_model.h
+++ b/chrome/browser/certificate_manager_model.h
@@ -56,6 +56,7 @@ class CertificateManagerModel {
~CertificateManagerModel();
+ bool is_user_db_available() const { return is_user_db_available_; }
bool is_tpm_available() const { return is_tpm_available_; }
// Accessor for read-only access to the underlying NSSCertDatabase.
@@ -124,6 +125,7 @@ class CertificateManagerModel {
private:
CertificateManagerModel(net::NSSCertDatabase* nss_cert_database,
+ bool is_user_db_available,
bool is_tpm_available,
Observer* observer);
@@ -131,6 +133,7 @@ class CertificateManagerModel {
// file for details.
static void DidGetCertDBOnUIThread(
net::NSSCertDatabase* cert_db,
+ bool is_user_db_available,
bool is_tpm_available,
CertificateManagerModel::Observer* observer,
const CreationCallback& callback);
@@ -148,6 +151,9 @@ class CertificateManagerModel {
net::NSSCertDatabase* cert_db_;
net::CertificateList cert_list_;
+ // Whether the certificate database has a public slot associated with the
+ // profile. If not set, importing certificates is not allowed with this model.
+ bool is_user_db_available_;
bool is_tpm_available_;
// The observer to notify when certificate list is refreshed.
« no previous file with comments | « no previous file | chrome/browser/certificate_manager_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698