aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-components_metrics_system__memory__stats__recorder__linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-components_metrics_system__memory__stats__recorder__linux.cc')
-rw-r--r--www/chromium/files/patch-components_metrics_system__memory__stats__recorder__linux.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/chromium/files/patch-components_metrics_system__memory__stats__recorder__linux.cc b/www/chromium/files/patch-components_metrics_system__memory__stats__recorder__linux.cc
new file mode 100644
index 000000000000..f20e81298569
--- /dev/null
+++ b/www/chromium/files/patch-components_metrics_system__memory__stats__recorder__linux.cc
@@ -0,0 +1,18 @@
+--- components/metrics/system_memory_stats_recorder_linux.cc.orig 2016-03-25 13:04:47 UTC
++++ components/metrics/system_memory_stats_recorder_linux.cc
+@@ -30,6 +30,7 @@ namespace metrics {
+ UMA_HISTOGRAM_LINEAR(name, sample, 2500, 50)
+
+ void RecordMemoryStats(RecordMemoryStatsType type) {
++#if !defined(OS_FREEBSD)
+ base::SystemMemoryInfoKB memory;
+ if (!base::GetSystemMemoryInfo(&memory))
+ return;
+@@ -93,6 +94,7 @@ void RecordMemoryStats(RecordMemoryStats
+ break;
+ }
+ }
++#endif // !defined(OS_FREEBSD)
+ }
+
+ } // namespace metrics