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

Unified Diff: content/browser/memory/memory_monitor.cc

Issue 2321313002: Move components/memory_coordinator -> content/ (Closed)
Patch Set: rebase etc Created 4 years, 3 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: content/browser/memory/memory_monitor.cc
diff --git a/components/memory_coordinator/browser/memory_monitor.cc b/content/browser/memory/memory_monitor.cc
similarity index 57%
rename from components/memory_coordinator/browser/memory_monitor.cc
rename to content/browser/memory/memory_monitor.cc
index 175e251e68ad79b5d20ac92654f19479e5ebbb32..5e67c9cb5b30ad1bbbc7efeacabbe6b8586fce83 100644
--- a/components/memory_coordinator/browser/memory_monitor.cc
+++ b/content/browser/memory/memory_monitor.cc
@@ -2,11 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/memory_coordinator/browser/memory_monitor.h"
+#include "content/browser/memory/memory_monitor.h"
#include "base/process/process_metrics.h"
-namespace memory_coordinator {
+namespace content {
+
+// static
+MemoryMonitorDelegate* MemoryMonitorDelegate::GetInstance() {
+ return base::Singleton<
+ MemoryMonitorDelegate,
+ base::LeakySingletonTraits<MemoryMonitorDelegate>>::get();
+}
MemoryMonitorDelegate::~MemoryMonitorDelegate() {}
@@ -15,4 +22,4 @@ void MemoryMonitorDelegate::GetSystemMemoryInfo(
base::GetSystemMemoryInfo(mem_info);
}
-} // namespace memory_coordinator
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698