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

Unified Diff: components/discardable_memory/service/BUILD.gn

Issue 2459733002: Move discardable memory to //components from //content (Closed)
Patch Set: Fix review issues Created 4 years, 1 month 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: components/discardable_memory/service/BUILD.gn
diff --git a/components/offline_pages/request_header/BUILD.gn b/components/discardable_memory/service/BUILD.gn
similarity index 51%
copy from components/offline_pages/request_header/BUILD.gn
copy to components/discardable_memory/service/BUILD.gn
index 711623cc3481ce69aee7d0bf41b1812ca406ff85..a58bb8285c52cefdf7248905942909dcbbb0e972 100644
--- a/components/offline_pages/request_header/BUILD.gn
+++ b/components/discardable_memory/service/BUILD.gn
@@ -2,14 +2,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-if (is_android) {
- import("//build/config/android/rules.gni")
-}
+import("//testing/test.gni")
+
+component("service") {
+ output_name = "discardable_memory_service"
+
+ defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ]
-static_library("request_header") {
sources = [
- "offline_page_header.cc",
- "offline_page_header.h",
+ "discardable_shared_memory_manager.cc",
+ "discardable_shared_memory_manager.h",
]
deps = [
@@ -19,14 +21,14 @@ static_library("request_header") {
source_set("unit_tests") {
testonly = true
+
sources = [
- "offline_page_header_unittest.cc",
+ "discardable_shared_memory_manager_unittest.cc",
]
deps = [
- ":request_header",
+ ":service",
"//base",
- "//base/test:test_support",
"//testing/gtest",
]
}

Powered by Google App Engine
This is Rietveld 408576698