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

Unified Diff: chromeos/network/network_profile_handler.cc

Issue 21046008: Convert all connect code to use NetworkHandler instead of NetworkLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NetworkConfigurationHandler::SetNetworkProfile Created 7 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698