diff options
Diffstat (limited to 'net/disk_cache/rankings.cc')
-rw-r--r-- | net/disk_cache/rankings.cc | 6 |
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 |