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

Unified Diff: net/BUILD.gn

Issue 1433893002: Add StaleWhileRevalidateExperiment histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s-w-r-dafsa
Patch Set: Fix compile error. Created 5 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
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | net/base/stale_while_revalidate_experiment_domains.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/BUILD.gn
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 0bba8a461811592ef21e08f544bcf9db430db049..7cbc219815b04d9782a47a4fc6d85fadfd1ba35e 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -1265,6 +1265,34 @@ source_set("simple_quic_tools") {
]
}
+action_foreach("stale_while_revalidate_experiment_domains_dafsa") {
+ script = "//net/tools/dafsa/make_dafsa.py"
+ sources = [
+ "base/stale_while_revalidate_experiment_domains.gperf",
+ ]
+ outputs = [
+ "${target_gen_dir}/base/{{source_name_part}}-inc.cc",
+ ]
+ args = [
+ "{{source}}",
+ rebase_path("${target_gen_dir}/base/{{source_name_part}}-inc.cc",
+ root_build_dir),
+ ]
+}
+
+source_set("stale_while_revalidate_experiment_domains") {
+ sources = [
+ "base/stale_while_revalidate_experiment_domains.cc",
+ "base/stale_while_revalidate_experiment_domains.h",
+ ]
+ deps = [
+ ":net",
+ ":stale_while_revalidate_experiment_domains_dafsa",
+ "//base",
+ ]
+ configs += net_shared_configs
+}
+
if (!is_ios) {
executable("quic_client") {
sources = [
@@ -1327,6 +1355,7 @@ test("net_unittests") {
":http_server",
":net",
":simple_quic_tools",
+ ":stale_while_revalidate_experiment_domains",
":test_support",
"//base",
"//base:i18n",
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | net/base/stale_while_revalidate_experiment_domains.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698