| Index: chromeos/network/network_profile_handler.cc
|
| diff --git a/chromeos/network/network_profile_handler.cc b/chromeos/network/network_profile_handler.cc
|
| index d20926589fa89234328e11e009a12fca59fbfc8e..26b1bef8055113d04cdd88326fb51d410f471320 100644
|
| --- a/chromeos/network/network_profile_handler.cc
|
| +++ b/chromeos/network/network_profile_handler.cc
|
| @@ -188,6 +188,16 @@ const NetworkProfile* NetworkProfileHandler::GetProfileForUserhash(
|
| return NULL;
|
| }
|
|
|
| +const NetworkProfile* NetworkProfileHandler::GetDefaultUserProfile() const {
|
| + for (NetworkProfileHandler::ProfileList::const_iterator it =
|
| + profiles_.begin();
|
| + it != profiles_.end(); ++it) {
|
| + if (!it->userhash.empty())
|
| + return &*it;
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| NetworkProfileHandler::NetworkProfileHandler()
|
| : network_state_handler_(NULL),
|
| weak_ptr_factory_(this) {
|
|
|