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

Unified Diff: chromeos/dbus/shill_manager_client_stub.cc

Issue 12387065: Convert TrayVPN to use new NetworkState code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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/dbus/shill_manager_client_stub.cc
diff --git a/chromeos/dbus/shill_manager_client_stub.cc b/chromeos/dbus/shill_manager_client_stub.cc
index 7cad8b171f07c8876937695fb2c00ff64e80bda4..c3dd9d3783176fa3b1fa8a5fe394700510b2f3e0 100644
--- a/chromeos/dbus/shill_manager_client_stub.cc
+++ b/chromeos/dbus/shill_manager_client_stub.cc
@@ -414,6 +414,8 @@ base::ListValue* ShillManagerClientStub::GetListProperty(
}
bool ShillManagerClientStub::TechnologyEnabled(const std::string& type) const {
+ if (type == flimflam::kTypeVPN)
+ return true; // VPN is always "enabled" since there is no associated device
bool enabled = false;
const base::ListValue* technologies;
if (stub_properties_.GetListWithoutPathExpansion(

Powered by Google App Engine
This is Rietveld 408576698