diff options
author | Sen Jiang <senj@google.com> | 2016-05-20 16:15:29 -0700 |
---|---|---|
committer | Sen Jiang <senj@google.com> | 2016-06-07 00:07:46 +0000 |
commit | 255e22b82af3a52218eaea66acc734ec25cfeab6 (patch) | |
tree | 4e06155b189999061af8238699a7ac93ac4fa906 /common_service.cc | |
parent | a35896c0ab209488b347672e9c917355b3fd8f51 (diff) |
Move ParseConnection*() to connection_utils.
We don't need real_shill_provider if USE_DBUS is 0, but we still need
these functions, and they have a duplicate copy in connection_manager,
so put them in utils and deduplicate.
Also moved StringForConnectionType() to connection_utils.
Bug: 28800946
Test: mma
Change-Id: If535fdc52bc8fb267921bea02b31d8d6580d5d54
Diffstat (limited to 'common_service.cc')
-rw-r--r-- | common_service.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common_service.cc b/common_service.cc index ade5349e..e284a934 100644 --- a/common_service.cc +++ b/common_service.cc @@ -273,9 +273,8 @@ bool UpdateEngineService::GetUpdateOverCellularPermission(ErrorPtr* /* error */, // Return the current setting based on the same logic used while checking for // updates. A log message could be printed as the result of this test. LOG(INFO) << "Checking if updates over cellular networks are allowed:"; - *out_allowed = cm->IsUpdateAllowedOver( - chromeos_update_engine::NetworkConnectionType::kCellular, - chromeos_update_engine::NetworkTethering::kUnknown); + *out_allowed = cm->IsUpdateAllowedOver(ConnectionType::kCellular, + ConnectionTethering::kUnknown); return true; } |