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

Unified Diff: chrome/browser/geolocation/wifi_data_provider_mac.cc

Issue 570006: Revert 37989 - unit test failed on Mac builder despite passing on try server... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 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 | « chrome/browser/geolocation/wifi_data_provider_linux.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/wifi_data_provider_mac.cc
===================================================================
--- chrome/browser/geolocation/wifi_data_provider_mac.cc (revision 37991)
+++ chrome/browser/geolocation/wifi_data_provider_mac.cc (working copy)
@@ -39,7 +39,7 @@
}
bool OsxWifiDataProvider::GetData(WifiData *data) {
- DCHECK(data);
+ assert(data);
MutexLock lock(&data_mutex_);
*data = wifi_data_;
// If we've successfully completed a scan, indicate that we have all of the
@@ -63,7 +63,7 @@
dlsym(apple_80211_library, "WirelessScanSplit"));
WirelessDetach_function_ = reinterpret_cast<WirelessDetachFunction>(
dlsym(apple_80211_library, "WirelessDetach"));
- DCHECK(WirelessAttach_function_ &&
+ assert(WirelessAttach_function_ &&
WirelessScanSplit_function_ &&
WirelessDetach_function_);
@@ -97,8 +97,8 @@
void OsxWifiDataProvider::GetAccessPointData(
WifiData::AccessPointDataSet *access_points) {
- DCHECK(access_points);
- DCHECK(WirelessScanSplit_function_);
+ assert(access_points);
+ assert(WirelessScanSplit_function_);
CFArrayRef managed_access_points = NULL;
CFArrayRef adhoc_access_points = NULL;
if ((*WirelessScanSplit_function_)(wifi_context_,
« no previous file with comments | « chrome/browser/geolocation/wifi_data_provider_linux.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698