| Index: components/wifi_sync/network_state_helper_chromeos.cc
|
| diff --git a/components/wifi_sync/network_state_helper_chromeos.cc b/components/wifi_sync/network_state_helper_chromeos.cc
|
| index 5cf6f183e4c2f787202e2a13c64478cb8cc194ba..f7afa73d4c22d512e29b48285c2f76c9c2ecdadb 100644
|
| --- a/components/wifi_sync/network_state_helper_chromeos.cc
|
| +++ b/components/wifi_sync/network_state_helper_chromeos.cc
|
| @@ -33,11 +33,15 @@ WifiCredential::CredentialSet GetWifiCredentialsForShillProfile(
|
| // TODO(quiche): Fill in the actual passphrase via an asynchronous
|
| // call to a chromeos::NetworkConfigurationHandler instance's
|
| // GetProperties method.
|
| - credentials.insert(
|
| - WifiCredential(
|
| + scoped_ptr<WifiCredential> credential =
|
| + WifiCredential::Create(
|
| network->raw_ssid(),
|
| WifiSecurityClassFromShillSecurity(network->security_class()),
|
| - "" /* empty passphrase */));
|
| + "" /* empty passphrase */);
|
| + if (!credential)
|
| + LOG(ERROR) << "Failed to create credential";
|
| + else
|
| + credentials.insert(*credential);
|
| }
|
| return credentials;
|
| }
|
|
|