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

Side by Side Diff: net/base/net_util.cc

Issue 328793002: Add wifi AP info to system profile metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using new interface to provide wifi access point information. Created 6 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 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 "net/base/net_util.h" 5 #include "net/base/net_util.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 NOTREACHED(); 1009 NOTREACHED();
1010 } 1010 }
1011 return a1.size() * CHAR_BIT; 1011 return a1.size() * CHAR_BIT;
1012 } 1012 }
1013 1013
1014 unsigned MaskPrefixLength(const IPAddressNumber& mask) { 1014 unsigned MaskPrefixLength(const IPAddressNumber& mask) {
1015 IPAddressNumber all_ones(mask.size(), 0xFF); 1015 IPAddressNumber all_ones(mask.size(), 0xFF);
1016 return CommonPrefixLength(mask, all_ones); 1016 return CommonPrefixLength(mask, all_ones);
1017 } 1017 }
1018 1018
1019 WifiAccessPointInfo::WifiAccessPointInfo()
1020 : security(WIFI_SECURITY_UNKNOWN) {
1021 }
1022
1023 WifiAccessPointInfo::~WifiAccessPointInfo() {
1024 }
1025
1019 } // namespace net 1026 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698