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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_win.cc

Issue 547693002: Fix the number of buckets in Net.Wifi.InterfaceCount UMA histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_corewlan_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Windows Vista uses the Native Wifi (WLAN) API for accessing WiFi cards. See 5 // Windows Vista uses the Native Wifi (WLAN) API for accessing WiFi cards. See
6 // http://msdn.microsoft.com/en-us/library/ms705945(VS.85).aspx. Windows XP 6 // http://msdn.microsoft.com/en-us/library/ms705945(VS.85).aspx. Windows XP
7 // Service Pack 3 (and Windows XP Service Pack 2, if upgraded with a hot fix) 7 // Service Pack 3 (and Windows XP Service Pack 2, if upgraded with a hot fix)
8 // also support a limited version of the WLAN API. See 8 // also support a limited version of the WLAN API. See
9 // http://msdn.microsoft.com/en-us/library/bb204766.aspx. The WLAN API uses 9 // http://msdn.microsoft.com/en-us/library/bb204766.aspx. The WLAN API uses
10 // wlanapi.h, which is not part of the SDK used by Gears, so is replicated 10 // wlanapi.h, which is not part of the SDK used by Gears, so is replicated
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 WlanFreeMemory_function_ && 238 WlanFreeMemory_function_ &&
239 WlanCloseHandle_function_); 239 WlanCloseHandle_function_);
240 } 240 }
241 241
242 void WindowsWlanApi::LogWlanInterfaceCount(int count) { 242 void WindowsWlanApi::LogWlanInterfaceCount(int count) {
243 UMA_HISTOGRAM_CUSTOM_COUNTS( 243 UMA_HISTOGRAM_CUSTOM_COUNTS(
244 "Net.Wifi.InterfaceCount", 244 "Net.Wifi.InterfaceCount",
245 count, 245 count,
246 1, 246 1,
247 5, 247 5,
248 5); 248 6);
249 } 249 }
250 250
251 bool WindowsWlanApi::GetAccessPointData( 251 bool WindowsWlanApi::GetAccessPointData(
252 WifiData::AccessPointDataSet* data) { 252 WifiData::AccessPointDataSet* data) {
253 DCHECK(data); 253 DCHECK(data);
254 254
255 // Get the handle to the WLAN API. 255 // Get the handle to the WLAN API.
256 DWORD negotiated_version; 256 DWORD negotiated_version;
257 HANDLE wlan_handle = NULL; 257 HANDLE wlan_handle = NULL;
258 // We could be executing on either Windows XP or Windows Vista, so use the 258 // We could be executing on either Windows XP or Windows Vista, so use the
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 633
634 if (*path->rbegin() != L'\\') { 634 if (*path->rbegin() != L'\\') {
635 path->append(L"\\"); 635 path->append(L"\\");
636 } 636 }
637 DCHECK_EQ(L'\\', *path->rbegin()); 637 DCHECK_EQ(L'\\', *path->rbegin());
638 return true; 638 return true;
639 } 639 }
640 } // namespace 640 } // namespace
641 641
642 } // namespace content 642 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_corewlan_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698