| Index: chrome/browser/memory/system_memory_stats_recorder_chromeos.cc
|
| diff --git a/chrome/browser/chromeos/memory/system_memory_stats_recorder.cc b/chrome/browser/memory/system_memory_stats_recorder_chromeos.cc
|
| similarity index 97%
|
| rename from chrome/browser/chromeos/memory/system_memory_stats_recorder.cc
|
| rename to chrome/browser/memory/system_memory_stats_recorder_chromeos.cc
|
| index 20a605cb3c1858a6763e031ae82586bcfdbbd99d..063f1893445660722fd6d55c919dbebb4a7c5e48 100644
|
| --- a/chrome/browser/chromeos/memory/system_memory_stats_recorder.cc
|
| +++ b/chrome/browser/memory/system_memory_stats_recorder_chromeos.cc
|
| @@ -2,11 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/chromeos/memory/system_memory_stats_recorder.h"
|
| +#include "chrome/browser/memory/system_memory_stats_recorder.h"
|
|
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/process/process_metrics.h"
|
|
|
| +namespace memory {
|
| +
|
| // Record a size in megabytes, over a potential interval up to 32 GB.
|
| #define UMA_HISTOGRAM_AVAILABLE_MEGABYTES(name, sample) \
|
| UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 32768, 50)
|
| @@ -31,8 +33,6 @@
|
| #define UMA_HISTOGRAM_MEGABYTES_LINEAR(name, sample) \
|
| UMA_HISTOGRAM_LINEAR(name, sample, 2500, 50)
|
|
|
| -namespace chromeos {
|
| -
|
| void RecordMemoryStats(RecordMemoryStatsType type) {
|
| base::SystemMemoryInfoKB memory;
|
| if (!base::GetSystemMemoryInfo(&memory))
|
| @@ -91,4 +91,4 @@ void RecordMemoryStats(RecordMemoryStatsType type) {
|
| }
|
| }
|
|
|
| -} // namespace chromeos
|
| +} // namespace memory
|
|
|