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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/memory_coordinator/browser/memory_monitor.h" 5 #include "content/browser/memory/memory_monitor.h"
6 6
7 #include "base/process/process_metrics.h" 7 #include "base/process/process_metrics.h"
8 8
9 namespace memory_coordinator { 9 namespace content {
10
11 // static
12 MemoryMonitorDelegate* MemoryMonitorDelegate::GetInstance() {
13 return base::Singleton<
14 MemoryMonitorDelegate,
15 base::LeakySingletonTraits<MemoryMonitorDelegate>>::get();
16 }
10 17
11 MemoryMonitorDelegate::~MemoryMonitorDelegate() {} 18 MemoryMonitorDelegate::~MemoryMonitorDelegate() {}
12 19
13 void MemoryMonitorDelegate::GetSystemMemoryInfo( 20 void MemoryMonitorDelegate::GetSystemMemoryInfo(
14 base::SystemMemoryInfoKB* mem_info) { 21 base::SystemMemoryInfoKB* mem_info) {
15 base::GetSystemMemoryInfo(mem_info); 22 base::GetSystemMemoryInfo(mem_info);
16 } 23 }
17 24
18 } // namespace memory_coordinator 25 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698