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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 23441025: Clean up NetworkState members (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index 2ebaf293d4dc852fe7d7a209b8453555a2d2a4d8..bed50f60935f27adeddc9ff0e57c09c3a09a6d16 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -1560,7 +1560,10 @@ void InternetOptionsHandler::PopulateDictionaryDetailsCallback(
dictionary.SetBoolean(kTagShowStaticIPConfig, staticIPConfig);
dictionary.SetBoolean(kTagShowPreferred, !network->profile_path().empty());
- bool preferred = network->priority() > 0;
+ int priority = 0;
+ shill_properties.GetIntegerWithoutPathExpansion(
+ flimflam::kPriorityProperty, &priority);
+ bool preferred = priority > 0;
SetValueDictionary(&dictionary, kTagPreferred,
new base::FundamentalValue(preferred),
property_ui_data);
@@ -1582,8 +1585,11 @@ void InternetOptionsHandler::PopulateDictionaryDetailsCallback(
auto_connect_ui_data.ParseOncProperty(
onc_source, onc, onc_path_to_auto_connect);
}
+ bool auto_connect = false;
+ shill_properties.GetBooleanWithoutPathExpansion(
+ flimflam::kAutoConnectProperty, &auto_connect);
SetValueDictionary(&dictionary, kTagAutoConnect,
- new base::FundamentalValue(network->auto_connect()),
+ new base::FundamentalValue(auto_connect),
auto_connect_ui_data);
PopulateConnectionDetails(network, shill_properties, &dictionary);
« no previous file with comments | « chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc ('k') | chrome/test/data/extensions/api_test/networking/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698