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

Unified Diff: chrome/browser/chromeos/options/wifi_config_view.cc

Issue 485083002: Fix network configurations that use the system CA certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/options/wifi_config_view.cc
diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc
index 5e73c2d869e28f2da732da219d58796051e27467..4f18f52a70fca3fe38e054ebc65da48a7f1aa0ff 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.cc
+++ b/chrome/browser/chromeos/options/wifi_config_view.cc
@@ -883,7 +883,9 @@ void WifiConfigView::SetEapProperties(base::DictionaryValue* properties) {
shill::kEapPasswordProperty, GetPassphrase());
base::ListValue* pem_list = new base::ListValue;
- pem_list->AppendString(GetEapServerCaCertPEM());
+ std::string ca_cert_pem = GetEapServerCaCertPEM();
+ if (!ca_cert_pem.empty())
+ pem_list->AppendString(ca_cert_pem);
properties->SetWithoutPathExpansion(
shill::kEapCaCertPemProperty, pem_list);
}
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698