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

Unified Diff: chrome/browser/ui/webui/options/certificate_manager_handler.cc

Issue 7605019: Reduce number of unnamed-type-template-args violations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698