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

Side by Side Diff: components/memory_coordinator/browser/BUILD.gn

Issue 2236983002: Create MemoryMonitor and Windows implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit and clang errors. Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 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 static_library("browser") { 5 static_library("browser") {
6 sources = [ 6 sources = [
7 "memory_coordinator.cc", 7 "memory_coordinator.cc",
8 "memory_coordinator.h", 8 "memory_coordinator.h",
9 "memory_monitor.h",
10 "memory_monitor_win.cc",
bashi 2016/08/11 22:03:12 Should we have "if (is_win) { ... }" block?
chrisha 2016/08/12 20:14:00 No need, as _win (and _linux, _chromeos, _mac, etc
bashi 2016/08/15 23:29:40 I didn't know that. Thanks for the explanation.
11 "memory_monitor_win.h",
9 ] 12 ]
10 13
11 deps = [ 14 deps = [
12 "//base", 15 "//base",
13 "//components/memory_coordinator/public/interfaces", 16 "//components/memory_coordinator/public/interfaces",
14 ] 17 ]
15 18
16 public_deps = [ 19 public_deps = [
17 "//components/memory_coordinator/common", 20 "//components/memory_coordinator/common",
18 ] 21 ]
19 } 22 }
20 23
21 source_set("unit_tests") { 24 source_set("unit_tests") {
22 testonly = true 25 testonly = true
23 26
24 sources = [ 27 sources = [
25 "memory_coordinator_unittest.cc", 28 "memory_coordinator_unittest.cc",
29 "memory_monitor_win_unittest.cc",
26 ] 30 ]
27 31
28 deps = [ 32 deps = [
29 ":browser", 33 ":browser",
30 "//testing/gtest", 34 "//testing/gtest",
31 ] 35 ]
32 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698