Chromium Code Reviews| Index: chrome/browser/ui/webui/options/certificate_manager_handler.cc |
| =================================================================== |
| --- chrome/browser/ui/webui/options/certificate_manager_handler.cc (revision 97489) |
| +++ chrome/browser/ui/webui/options/certificate_manager_handler.cc (working copy) |
| @@ -466,13 +466,12 @@ |
| int trust = certificate_manager_model_->cert_db().GetCertTrust( |
| cert, net::CA_CERT); |
| - using base::FundamentalValue; |
| - FundamentalValue ssl_value(bool(trust & net::CertDatabase::TRUSTED_SSL)); |
| - FundamentalValue email_value(bool(trust & net::CertDatabase::TRUSTED_EMAIL)); |
| - FundamentalValue obj_sign_value( |
| - bool(trust & net::CertDatabase::TRUSTED_OBJ_SIGN)); |
| - web_ui_->CallJavascriptFunction( |
| - "CertificateEditCaTrustOverlay.populateTrust", |
| + base::FundamentalValue ssl_value(!!(trust & net::CertDatabase::TRUSTED_SSL)); |
|
Nico
2011/08/19 20:34:23
(I remember seeing !! for the first time in some o
|
| + base::FundamentalValue email_value( |
| + !!(trust & net::CertDatabase::TRUSTED_EMAIL)); |
| + base::FundamentalValue obj_sign_value( |
| + !!(trust & net::CertDatabase::TRUSTED_OBJ_SIGN)); |
| + web_ui_->CallJavascriptFunction("CertificateEditCaTrustOverlay.populateTrust", |
| ssl_value, email_value, obj_sign_value); |
| } |