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

Unified Diff: components/memory_coordinator/browser/BUILD.gn

Issue 2332423002: Added memory-monitor for ChromeOS. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | components/memory_coordinator/browser/memory_monitor_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/memory_coordinator/browser/BUILD.gn
diff --git a/components/memory_coordinator/browser/BUILD.gn b/components/memory_coordinator/browser/BUILD.gn
index 834a26f8bb5f3a372ff2256d3200b70d156c080d..4af740a50f76a96d81a4dab779c8b8482a574932 100644
--- a/components/memory_coordinator/browser/BUILD.gn
+++ b/components/memory_coordinator/browser/BUILD.gn
@@ -10,12 +10,25 @@ component("browser") {
"memory_coordinator.h",
"memory_monitor.cc",
"memory_monitor.h",
- "memory_monitor_linux.cc",
- "memory_monitor_linux.h",
- "memory_monitor_win.cc",
- "memory_monitor_win.h",
]
+ if (is_chromeos) {
+ sources += [
+ "memory_monitor_chromeos.cc",
chrisha 2016/09/14 09:53:34 The automagic source-file filtering doesn't work f
bcwhite 2016/09/14 13:19:27 It does... but it also includes the _linux files
+ "memory_monitor_chromeos.h",
+ ]
+ } else if (is_linux) {
+ sources += [
+ "memory_monitor_linux.cc",
+ "memory_monitor_linux.h",
+ ]
+ } else if (is_win) {
+ sources += [
+ "memory_monitor_win.cc",
+ "memory_monitor_win.h",
+ ]
+ }
+
defines = [ "MEMORY_COORDINATOR_IMPLEMENTATION" ]
deps = [
@@ -33,12 +46,18 @@ source_set("unit_tests") {
sources = [
"memory_coordinator_unittest.cc",
- "memory_monitor_linux_unittest.cc",
- "memory_monitor_win_unittest.cc",
"test_memory_monitor.cc",
"test_memory_monitor.h",
]
+ if (is_chromeos) {
+ sources += [ "memory_monitor_chromeos_unittest.cc" ]
+ } else if (is_linux) {
+ sources += [ "memory_monitor_linux_unittest.cc" ]
+ } else if (is_win) {
+ sources += [ "memory_monitor_win_unittest.cc" ]
+ }
+
deps = [
":browser",
"//testing/gtest",
« no previous file with comments | « no previous file | components/memory_coordinator/browser/memory_monitor_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698