summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/rankings.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:36:21 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:36:21 +0000
commita88d601f7f632a21afe88359d503559fa20d9e40 (patch)
tree23f4bd0f2492463cb6fadec07c845b5c0ca8e5e0 /net/disk_cache/rankings.cc
parent5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad (diff)
downloadchromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.zip
chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.tar.gz
chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.tar.bz2
Second pass move the os dependent code apart on the disk cache.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/rankings.cc')
-rw-r--r--net/disk_cache/rankings.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/disk_cache/rankings.cc b/net/disk_cache/rankings.cc
index 42667cc..9e14d04 100644
--- a/net/disk_cache/rankings.cc
+++ b/net/disk_cache/rankings.cc
@@ -35,7 +35,7 @@
#include "net/disk_cache/errors.h"
// This is used by crash_cache.exe to generate unit test files.
-extern disk_cache::RankCrashes g_rankings_crash = disk_cache::NO_CRASH;
+disk_cache::RankCrashes g_rankings_crash = disk_cache::NO_CRASH;
namespace {
@@ -91,6 +91,7 @@ enum CrashLocation {
// Generates a crash on debug builds, acording to the value of g_rankings_crash.
// This used by crash_cache.exe to generate unit-test files.
void GenerateCrash(CrashLocation location) {
+#if defined(OS_WIN)
#ifndef NDEBUG
if (disk_cache::NO_CRASH == g_rankings_crash)
return;
@@ -169,7 +170,8 @@ void GenerateCrash(CrashLocation location) {
NOTREACHED();
return;
}
-#endif
+#endif // NDEBUG
+#endif // OS_WIN
}
} // namespace