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

Unified Diff: chrome/browser/memory/system_memory_stats_recorder_chromeos.cc

Issue 1188823002: [MemoryPressure] Move chrome/browser/chromeos/* to chrome/browser/memory/*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sky@ comments. Created 5 years, 6 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
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
« no previous file with comments | « chrome/browser/memory/system_memory_stats_recorder.h ('k') | chrome/browser/metrics/chrome_stability_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698