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

Unified Diff: chromeos/network/device_state.cc

Issue 19509002: Add support for Device.ProposeScan to NetworkDeviceHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed gauravsh@'s comments. Created 7 years, 5 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 | « chromeos/network/device_state.h ('k') | chromeos/network/network_device_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/device_state.cc
diff --git a/chromeos/network/device_state.cc b/chromeos/network/device_state.cc
index 781a0977bc686b6787d177cd25a2627acce82cc8..714304f00f00bf4bf9647079d55581b7a5cf9121 100644
--- a/chromeos/network/device_state.cc
+++ b/chromeos/network/device_state.cc
@@ -65,6 +65,15 @@ bool DeviceState::PropertyChanged(const std::string& key,
return GetStringValue(key, value, &technology_family_);
} else if (key == flimflam::kCarrierProperty) {
return GetStringValue(key, value, &carrier_);
+ } else if (key == flimflam::kFoundNetworksProperty) {
+ const base::ListValue* list = NULL;
+ if (!value.GetAsList(&list))
+ return false;
+ CellularScanResults parsed_results;
+ if (!network_util::ParseCellularScanResults(*list, &parsed_results))
+ return false;
+ scan_results_.swap(parsed_results);
+ return true;
} else if (key == flimflam::kSIMLockStatusProperty) {
const base::DictionaryValue* dict = NULL;
if (!value.GetAsDictionary(&dict))
« no previous file with comments | « chromeos/network/device_state.h ('k') | chromeos/network/network_device_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698