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

Side by Side Diff: components/domain_reliability/bake_in_configs.py

Issue 2645653002: Domain Reliability: Add a collector and a few configs. (Closed)
Patch Set: Created 3 years, 11 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 """Takes the JSON files in components/domain_reliability/baked_in_configs and 7 """Takes the JSON files in components/domain_reliability/baked_in_configs and
8 encodes their contents as an array of C strings that gets compiled in to Chrome 8 encodes their contents as an array of C strings that gets compiled in to Chrome
9 and loaded at runtime.""" 9 and loaded at runtime."""
10 10
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 'googlepayments.com', 304 'googlepayments.com',
305 'googlesource.com', 305 'googlesource.com',
306 'googlesyndication.com', 306 'googlesyndication.com',
307 'googletagmanager.com', 307 'googletagmanager.com',
308 'googletagservices.com', 308 'googletagservices.com',
309 'googleusercontent.com', 309 'googleusercontent.com',
310 'googlevideo.com', 310 'googlevideo.com',
311 'gstatic.com', 311 'gstatic.com',
312 'gvt1.com', 312 'gvt1.com',
313 'gvt2.com', 313 'gvt2.com',
314 'gvt6.com',
314 'withgoogle.com', 315 'withgoogle.com',
315 'youtu.be', 316 'youtu.be',
316 'youtube-3rd-party.com', 317 'youtube-3rd-party.com',
317 'youtube-nocookie.com', 318 'youtube-nocookie.com',
318 'youtube.ae', 319 'youtube.ae',
319 'youtube.al', 320 'youtube.al',
320 'youtube.am', 321 'youtube.am',
321 'youtube.at', 322 'youtube.at',
322 'youtube.az', 323 'youtube.az',
323 'youtube.ba', 324 'youtube.ba',
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 return 1 586 return 1
586 587
587 with open(opts.output, 'wb') as f: 588 with open(opts.output, 'wb') as f:
588 f.write(cpp_code) 589 f.write(cpp_code)
589 590
590 return 0 591 return 0
591 592
592 593
593 if __name__ == '__main__': 594 if __name__ == '__main__':
594 sys.exit(main()) 595 sys.exit(main())
OLDNEW
« no previous file with comments | « components/domain_reliability/BUILD.gn ('k') | components/domain_reliability/baked_in_configs/c_2mdn_net.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698