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

Unified Diff: components/wifi/wifi_service_win.cc

Issue 88653002: Move GetVisibleNetworks network type filtering to WiFiService interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« components/wifi/fake_wifi_service.cc ('K') | « components/wifi/wifi_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/wifi_service_win.cc
diff --git a/components/wifi/wifi_service_win.cc b/components/wifi/wifi_service_win.cc
index 052062db1a757f5f4bfa617b74cf9e96bc186876..e3a61545df2aee507c0ef0325dcca3784f3c235b 100644
--- a/components/wifi/wifi_service_win.cc
+++ b/components/wifi/wifi_service_win.cc
@@ -154,8 +154,10 @@ class WiFiServiceImpl : public WiFiService, base::NonThreadSafe {
scoped_ptr<base::DictionaryValue> properties,
std::string* error) OVERRIDE;
- // Get list of visible networks. Populates |network_list| on success.
- virtual void GetVisibleNetworks(ListValue* network_list) OVERRIDE;
+ // Get list of visible networks of |network_type| (one of onc::network_type).
+ // Populates |network_list| on success.
+ virtual void GetVisibleNetworks(const std::string& network_type,
+ ListValue* network_list) OVERRIDE;
// Request network scan. Send |NetworkListChanged| event on completion.
virtual void RequestNetworkScan() OVERRIDE;
@@ -424,9 +426,13 @@ void WiFiServiceImpl::SetProperties(
CheckError(ERROR_CALL_NOT_IMPLEMENTED, kWiFiServiceError, error);
}
-void WiFiServiceImpl::GetVisibleNetworks(ListValue* network_list) {
- DWORD error = EnsureInitialized();
+void WiFiServiceImpl::GetVisibleNetworks(const std::string& network_type,
+ ListValue* network_list) {
+ DCHECK(network_type.empty() ||
+ network_type == onc::network_type::kAllTypes ||
+ network_type == onc::network_type::kWiFi);
stevenjb 2013/11/26 17:35:55 network_type comes more-or-less directly from the
mef 2013/11/26 18:30:39 Done.
+ DWORD error = EnsureInitialized();
if (error == ERROR_SUCCESS) {
NetworkList networks;
error = GetVisibleNetworkList(&networks);
« components/wifi/fake_wifi_service.cc ('K') | « components/wifi/wifi_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698