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

Unified Diff: chromeos/network/device_state.cc

Issue 285233008: Add MacAddress to ONC and networkingPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Rebase Created 6 years, 7 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 | « chromeos/network/device_state.h ('k') | chromeos/network/managed_network_configuration_handler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/device_state.cc
diff --git a/chromeos/network/device_state.cc b/chromeos/network/device_state.cc
index 0880ef7393d64247b8ed3e0b6660cb7064382dab..b0453d51927ff891b6a39a3f2bb55821996109f7 100644
--- a/chromeos/network/device_state.cc
+++ b/chromeos/network/device_state.cc
@@ -158,18 +158,6 @@ void DeviceState::IPConfigPropertiesChanged(
ip_config->MergeDictionary(&properties);
}
-std::string DeviceState::GetFormattedMacAddress() const {
- if (mac_address_.size() % 2 != 0)
- return mac_address_;
- std::string result;
- for (size_t i = 0; i < mac_address_.size(); ++i) {
- if ((i != 0) && (i % 2 == 0))
- result.push_back(':');
- result.push_back(mac_address_[i]);
- }
- return result;
-}
-
bool DeviceState::IsSimAbsent() const {
return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_;
}
« no previous file with comments | « chromeos/network/device_state.h ('k') | chromeos/network/managed_network_configuration_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698