| Index: net/base/cert_database_mac.cc
|
| ===================================================================
|
| --- net/base/cert_database_mac.cc (revision 43288)
|
| +++ net/base/cert_database_mac.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -8,15 +8,13 @@
|
|
|
| #include "base/logging.h"
|
| #include "net/base/net_errors.h"
|
| +#include "net/base/x509_certificate.h"
|
|
|
| namespace net {
|
|
|
| CertDatabase::CertDatabase() {
|
| }
|
|
|
| -void CertDatabase::Init() {
|
| -}
|
| -
|
| int CertDatabase::CheckUserCert(X509Certificate* cert) {
|
| if (!cert)
|
| return ERR_CERT_INVALID;
|
| @@ -44,14 +42,14 @@
|
|
|
| int CertDatabase::AddUserCert(X509Certificate* cert) {
|
| OSStatus err = SecCertificateAddToKeychain(cert->os_cert_handle(), NULL);
|
| - switch(err) {
|
| + switch (err) {
|
| case noErr:
|
| case errSecDuplicateItem:
|
| return OK;
|
| default:
|
| LOG(ERROR) << "CertDatabase failed to add cert to keychain: " << err;
|
| // TODO(snej): Map the error code more intelligently.
|
| - return ERR_ERR_ADD_USER_CERT_FAILED;
|
| + return ERR_ADD_USER_CERT_FAILED;
|
| }
|
| }
|
|
|
|
|