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

Unified Diff: device/geolocation/wifi_data_provider_common.cc

Issue 2200483002: Geolocation cleanup: run clang-format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: device/geolocation/wifi_data_provider_common.cc
diff --git a/device/geolocation/wifi_data_provider_common.cc b/device/geolocation/wifi_data_provider_common.cc
index e5ac86fadc2094a0e2982865e16c3f260bc2d83a..729efb6007417713249078c5d5d01b56fc173440 100644
--- a/device/geolocation/wifi_data_provider_common.cc
+++ b/device/geolocation/wifi_data_provider_common.cc
@@ -15,24 +15,16 @@ namespace device {
base::string16 MacAddressAsString16(const uint8_t mac_as_int[6]) {
// mac_as_int is big-endian. Write in byte chunks.
// Format is XX-XX-XX-XX-XX-XX.
- static const char* const kMacFormatString =
- "%02x-%02x-%02x-%02x-%02x-%02x";
- return base::ASCIIToUTF16(base::StringPrintf(kMacFormatString,
- mac_as_int[0],
- mac_as_int[1],
- mac_as_int[2],
- mac_as_int[3],
- mac_as_int[4],
- mac_as_int[5]));
+ static const char* const kMacFormatString = "%02x-%02x-%02x-%02x-%02x-%02x";
+ return base::ASCIIToUTF16(base::StringPrintf(
+ kMacFormatString, mac_as_int[0], mac_as_int[1], mac_as_int[2],
+ mac_as_int[3], mac_as_int[4], mac_as_int[5]));
}
WifiDataProviderCommon::WifiDataProviderCommon()
- : is_first_scan_complete_(false),
- weak_factory_(this) {
-}
+ : is_first_scan_complete_(false), weak_factory_(this) {}
-WifiDataProviderCommon::~WifiDataProviderCommon() {
-}
+WifiDataProviderCommon::~WifiDataProviderCommon() {}
void WifiDataProviderCommon::StartDataProvider() {
DCHECK(wlan_api_ == NULL);
« no previous file with comments | « device/geolocation/wifi_data_provider_chromeos_unittest.cc ('k') | device/geolocation/wifi_data_provider_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698