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

Unified Diff: chrome/browser/certificate_manager_model.h

Issue 209263002: Merge 257570 "Handle cases when user cert database has NULL slots" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/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
===================================================================
--- chrome/browser/certificate_manager_model.h (revision 258711)
+++ chrome/browser/certificate_manager_model.h (working copy)
@@ -56,6 +56,7 @@
~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 @@
private:
CertificateManagerModel(net::NSSCertDatabase* nss_cert_database,
+ bool is_user_db_available,
bool is_tpm_available,
Observer* observer);
@@ -131,6 +133,7 @@
// 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 @@
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