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

Unified Diff: ash/system/chromeos/network/network_connect.h

Issue 23712002: Cleanup network type matching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit test in Debug. 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
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_connect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/network_connect.h
diff --git a/ash/system/chromeos/network/network_connect.h b/ash/system/chromeos/network/network_connect.h
index 7868d2318379a3b2813ca5e17a1545826c98fe08..0c504be432ff3f622a2e08d4c7106a3e359157d4 100644
--- a/ash/system/chromeos/network/network_connect.h
+++ b/ash/system/chromeos/network/network_connect.h
@@ -15,6 +15,10 @@ namespace base {
class DictionaryValue;
}
+namespace chromeos {
+class NetworkTypePattern;
+}
+
namespace ash {
namespace network_connect {
@@ -32,8 +36,9 @@ ASH_EXPORT void ConnectToNetwork(const std::string& service_path,
// Enables or disables a network technology. If |technology| refers to cellular
// and the device cannot be enabled due to a SIM lock, this function will
// launch the SIM unlock dialog.
-ASH_EXPORT void SetTechnologyEnabled(const std::string& technology,
- bool enabled_state);
+ASH_EXPORT void SetTechnologyEnabled(
+ const chromeos::NetworkTypePattern& technology,
+ bool enabled_state);
// Requests network activation and handles any errors and notifications.
ASH_EXPORT void ActivateCellular(const std::string& service_path);
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_connect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698