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

Side by Side Diff: chromeos/network/device_state.cc

Issue 2819993002: [CrOS Tether] Add the notion of a tether DeviceState. (Closed)
Patch Set: Rebased. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/network/device_state.h" 5 #include "chromeos/network/device_state.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chromeos/network/network_event_log.h" 10 #include "chromeos/network/network_event_log.h"
11 #include "chromeos/network/shill_property_util.h" 11 #include "chromeos/network/shill_property_util.h"
12 #include "chromeos/network/tether_constants.h"
Ryan Hansberry 2017/04/20 01:38:35 Is this include necessary?
Kyle Horimoto 2017/04/20 02:16:07 Done.
12 #include "third_party/cros_system_api/dbus/service_constants.h" 13 #include "third_party/cros_system_api/dbus/service_constants.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 DeviceState::DeviceState(const std::string& path) 17 DeviceState::DeviceState(const std::string& path)
17 : ManagedState(MANAGED_TYPE_DEVICE, path), 18 : ManagedState(MANAGED_TYPE_DEVICE, path),
18 allow_roaming_(false), 19 allow_roaming_(false),
19 provider_requires_roaming_(false), 20 provider_requires_roaming_(false),
20 support_network_scan_(false), 21 support_network_scan_(false),
21 scanning_(false), 22 scanning_(false),
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 148 }
148 } 149 }
149 return std::string(); 150 return std::string();
150 } 151 }
151 152
152 bool DeviceState::IsSimAbsent() const { 153 bool DeviceState::IsSimAbsent() const {
153 return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_; 154 return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_;
154 } 155 }
155 156
156 } // namespace chromeos 157 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698